{"action":"opened","issue":{"url":"https://api.github.com/repos/aspnet/Razor/issues/513","labels_url":"https://api.github.com/repos/aspnet/Razor/issues/513/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/Razor/issues/513/comments","events_url":"https://api.github.com/repos/aspnet/Razor/issues/513/events","html_url":"https://github.com/aspnet/Razor/issues/513","id":105906445,"number":513,"title":"Code formatter does not always love the textarea content","user":{"login":"Casimodo72","id":10551738,"avatar_url":"https://avatars.githubusercontent.com/u/10551738?v=3","gravatar_id":"","url":"https://api.github.com/users/Casimodo72","html_url":"https://github.com/Casimodo72","followers_url":"https://api.github.com/users/Casimodo72/followers","following_url":"https://api.github.com/users/Casimodo72/following{/other_user}","gists_url":"https://api.github.com/users/Casimodo72/gists{/gist_id}","starred_url":"https://api.github.com/users/Casimodo72/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Casimodo72/subscriptions","organizations_url":"https://api.github.com/users/Casimodo72/orgs","repos_url":"https://api.github.com/users/Casimodo72/repos","events_url":"https://api.github.com/users/Casimodo72/events{/privacy}","received_events_url":"https://api.github.com/users/Casimodo72/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-10T21:57:48Z","updated_at":"2015-09-10T21:57:48Z","closed_at":null,"body":"Hi,\r\nwhen using a non-one-liner textarea and writing its text value directly into the file, then auto-formatting the file (via whatever keys you have assigned) produces different effective HTML.\r\n\r\nScenario:\r\nBefore auto-formatting:\r\n```xml\r\n<textarea id=\"Message\"\r\n\tname=\"Message\">Senden Sie mir ein Angebot für...</textarea>\r\n```\r\nAfter code auto-formatting.\r\n```xml\r\n<textarea id=\"Message\"\r\n\tname=\"Message\">\r\nSenden Sie mir ein Angebot für...\r\n</textarea>\r\n```\r\nThe text comes out as:\r\n![razor-auto-formatting-textarea-breaks-intention](https://cloud.githubusercontent.com/assets/10551738/9801968/f6154cfc-5816-11e5-98af-f3a737fc5712.png)\r\n\r\nOn ther other hand, if one uses a one-liner textarea, e.g.\r\n```xml \r\n<textarea id=\"Message\" name=\"Message\">Senden Sie mir ein Angebot für...</textarea>\r\n```\r\n... then everything's ok.\r\n\r\nUsing VS 2015 vNext, DNX Core 5.0 & co.\r\n\r\nRegards,\r\nKasimier Buchcik"}}