{"action":"closed","issue":{"url":"https://api.github.com/repos/aspnet/Razor/issues/485","repository_url":"https://api.github.com/repos/aspnet/Razor","labels_url":"https://api.github.com/repos/aspnet/Razor/issues/485/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/Razor/issues/485/comments","events_url":"https://api.github.com/repos/aspnet/Razor/issues/485/events","html_url":"https://github.com/aspnet/Razor/issues/485","id":100841789,"number":485,"title":"Remove unnecessary whitespace that is rendered for non markup content","user":{"login":"ajaybhargavb","id":1579269,"avatar_url":"https://avatars.githubusercontent.com/u/1579269?v=3","gravatar_id":"","url":"https://api.github.com/users/ajaybhargavb","html_url":"https://github.com/ajaybhargavb","followers_url":"https://api.github.com/users/ajaybhargavb/followers","following_url":"https://api.github.com/users/ajaybhargavb/following{/other_user}","gists_url":"https://api.github.com/users/ajaybhargavb/gists{/gist_id}","starred_url":"https://api.github.com/users/ajaybhargavb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajaybhargavb/subscriptions","organizations_url":"https://api.github.com/users/ajaybhargavb/orgs","repos_url":"https://api.github.com/users/ajaybhargavb/repos","events_url":"https://api.github.com/users/ajaybhargavb/events{/privacy}","received_events_url":"https://api.github.com/users/ajaybhargavb/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/aspnet/Razor/labels/3%20-%20Done","name":"3 - Done","color":"CCCCCC"},{"url":"https://api.github.com/repos/aspnet/Razor/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"ajaybhargavb","id":1579269,"avatar_url":"https://avatars.githubusercontent.com/u/1579269?v=3","gravatar_id":"","url":"https://api.github.com/users/ajaybhargavb","html_url":"https://github.com/ajaybhargavb","followers_url":"https://api.github.com/users/ajaybhargavb/followers","following_url":"https://api.github.com/users/ajaybhargavb/following{/other_user}","gists_url":"https://api.github.com/users/ajaybhargavb/gists{/gist_id}","starred_url":"https://api.github.com/users/ajaybhargavb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajaybhargavb/subscriptions","organizations_url":"https://api.github.com/users/ajaybhargavb/orgs","repos_url":"https://api.github.com/users/ajaybhargavb/repos","events_url":"https://api.github.com/users/ajaybhargavb/events{/privacy}","received_events_url":"https://api.github.com/users/ajaybhargavb/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/aspnet/Razor/milestones/14","html_url":"https://github.com/aspnet/Razor/milestones/1.0.0-beta8","labels_url":"https://api.github.com/repos/aspnet/Razor/milestones/14/labels","id":1221083,"number":14,"title":"1.0.0-beta8","description":"","creator":{"login":"Eilon","id":202643,"avatar_url":"https://avatars.githubusercontent.com/u/202643?v=3","gravatar_id":"","url":"https://api.github.com/users/Eilon","html_url":"https://github.com/Eilon","followers_url":"https://api.github.com/users/Eilon/followers","following_url":"https://api.github.com/users/Eilon/following{/other_user}","gists_url":"https://api.github.com/users/Eilon/gists{/gist_id}","starred_url":"https://api.github.com/users/Eilon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Eilon/subscriptions","organizations_url":"https://api.github.com/users/Eilon/orgs","repos_url":"https://api.github.com/users/Eilon/repos","events_url":"https://api.github.com/users/Eilon/events{/privacy}","received_events_url":"https://api.github.com/users/Eilon/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":26,"state":"closed","created_at":"2015-07-22T21:20:29Z","updated_at":"2016-04-26T22:48:42Z","due_on":null,"closed_at":"2015-10-22T16:54:42Z"},"comments":6,"created_at":"2015-08-13T18:50:10Z","updated_at":"2016-04-26T22:48:42Z","closed_at":"2016-04-26T22:48:42Z","body":"Extra new lines from razor comments has been removed in #428. But we still need to handle unnecessary whitespace in other places.\r\n\r\nFrom @danroth27:\r\nWe've decided to be smart about removing whitespace for any non-HTML content that occupies the entire line. So in addition to @RehanSaeed's example https://github.com/aspnet/Razor/issues/428#issue-90321772, the following example:\r\n\r\n```html\r\n@{\r\n}\r\n<!DOCTYPE html>\r\n```\r\nShould render just the doctype without any leading whitespace (which would be invalid). Also:\r\n\r\n    @foreach (var item in items)\r\n    {\r\n        <li>@item</li>\r\n    }\r\nShould not render a line with four spaces before the list item.\r\n\r\n\r\ncc' @NTaylorMullen \r\n\r\n<!---\r\n@huboard:{\"order\":3055.0,\"milestone_order\":485,\"custom_state\":\"ready\"}\n-->\r\n"}}