{"action":"opened","issue":{"url":"https://api.github.com/repos/atom/whitespace/issues/61","labels_url":"https://api.github.com/repos/atom/whitespace/issues/61/labels{/name}","comments_url":"https://api.github.com/repos/atom/whitespace/issues/61/comments","events_url":"https://api.github.com/repos/atom/whitespace/issues/61/events","html_url":"https://github.com/atom/whitespace/issues/61","id":59923986,"number":61,"title":"\"Ignore Whitespace Only Lines\" combined with \"Ensure Single Trailing Newline\"","user":{"login":"simonjosefsson","id":3242316,"avatar_url":"https://avatars.githubusercontent.com/u/3242316?v=3","gravatar_id":"","url":"https://api.github.com/users/simonjosefsson","html_url":"https://github.com/simonjosefsson","followers_url":"https://api.github.com/users/simonjosefsson/followers","following_url":"https://api.github.com/users/simonjosefsson/following{/other_user}","gists_url":"https://api.github.com/users/simonjosefsson/gists{/gist_id}","starred_url":"https://api.github.com/users/simonjosefsson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simonjosefsson/subscriptions","organizations_url":"https://api.github.com/users/simonjosefsson/orgs","repos_url":"https://api.github.com/users/simonjosefsson/repos","events_url":"https://api.github.com/users/simonjosefsson/events{/privacy}","received_events_url":"https://api.github.com/users/simonjosefsson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-05T09:10:45Z","updated_at":"2015-03-05T09:10:45Z","closed_at":null,"body":"Consider I have a document that ends like this:\r\n(\"#\" = newline, \".\" = space)\r\n\r\n    ..)#\r\n    )#\r\n    ..#\r\n    ..#\r\n    ..#\r\n    #\r\n    #\r\n\r\nIt will only trim the trailing newlines up to the spaces\r\n\r\n    ..)#\r\n    )#\r\n    ..#\r\n    ..#\r\n    ..#\r\n\r\nMy suggestion is to add an exception to \"whitespace only lines\" so that it does trim the line if the rest of the document has only whitespace characters"}}