{"action":"created","issue":{"url":"https://api.github.com/repos/atom/whitespace/issues/106","labels_url":"https://api.github.com/repos/atom/whitespace/issues/106/labels{/name}","comments_url":"https://api.github.com/repos/atom/whitespace/issues/106/comments","events_url":"https://api.github.com/repos/atom/whitespace/issues/106/events","html_url":"https://github.com/atom/whitespace/issues/106","id":125153197,"number":106,"title":"Package deletes trailing whitespace when Enter/Return is pressed in a line that has only whitespace before the cursor","user":{"login":"WalterGR","id":380880,"avatar_url":"https://avatars.githubusercontent.com/u/380880?v=3","gravatar_id":"","url":"https://api.github.com/users/WalterGR","html_url":"https://github.com/WalterGR","followers_url":"https://api.github.com/users/WalterGR/followers","following_url":"https://api.github.com/users/WalterGR/following{/other_user}","gists_url":"https://api.github.com/users/WalterGR/gists{/gist_id}","starred_url":"https://api.github.com/users/WalterGR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WalterGR/subscriptions","organizations_url":"https://api.github.com/users/WalterGR/orgs","repos_url":"https://api.github.com/users/WalterGR/repos","events_url":"https://api.github.com/users/WalterGR/events{/privacy}","received_events_url":"https://api.github.com/users/WalterGR/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/atom/whitespace/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-06T10:42:47Z","updated_at":"2016-01-14T03:17:20Z","closed_at":null,"body":"Atom 1.3.2 on OS X 10.10.5.\r\n\r\nRepro:\r\n\r\n1.  Ensure `whitespace` package is enabled.\r\n2.  Create new file.\r\n3.  Press Space several times.\r\n4.  Press Enter/Return.\r\n\r\nExpected:\r\n\r\nThose spaces aren't deleted immediately.  Rather, the package \"Strips trailing whitespace and adds a trailing newline when an editor is saved.\" as per its description.\r\n\r\nActual:\r\n\r\nThe spaces are deleted immediately."},"comment":{"url":"https://api.github.com/repos/atom/whitespace/issues/comments/171517811","html_url":"https://github.com/atom/whitespace/issues/106#issuecomment-171517811","issue_url":"https://api.github.com/repos/atom/whitespace/issues/106","id":171517811,"user":{"login":"WalterGR","id":380880,"avatar_url":"https://avatars.githubusercontent.com/u/380880?v=3","gravatar_id":"","url":"https://api.github.com/users/WalterGR","html_url":"https://github.com/WalterGR","followers_url":"https://api.github.com/users/WalterGR/followers","following_url":"https://api.github.com/users/WalterGR/following{/other_user}","gists_url":"https://api.github.com/users/WalterGR/gists{/gist_id}","starred_url":"https://api.github.com/users/WalterGR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WalterGR/subscriptions","organizations_url":"https://api.github.com/users/WalterGR/orgs","repos_url":"https://api.github.com/users/WalterGR/repos","events_url":"https://api.github.com/users/WalterGR/events{/privacy}","received_events_url":"https://api.github.com/users/WalterGR/received_events","type":"User","site_admin":false},"created_at":"2016-01-14T03:17:20Z","updated_at":"2016-01-14T03:17:20Z","body":"Are you sure this is an enhancement?\r\n\r\nThe behavior of the package and the description can't both be correct, since they differ.  Either the behavior or the description are wrong.\r\n\r\nWhenever a program changes what a user enters behind their back, there needs to be a solid justification for it.  What's the justification for doing this before save, since this package will do it upon saving?  What does the current behavior earn the user?\r\n\r\nI see no benefit and only a cost: it interferes with what I'm doing.  Now I have to go out of my way when I'm formatting things to *avoid* pressing Enter after only whitespace, since Atom is 'finicky about whitespace.'  What's the benefit of having to include that in my mental model of Atom?"}}