{"action":"created","issue":{"url":"https://api.github.com/repos/jlongster/prettier/issues/554","repository_url":"https://api.github.com/repos/jlongster/prettier","labels_url":"https://api.github.com/repos/jlongster/prettier/issues/554/labels{/name}","comments_url":"https://api.github.com/repos/jlongster/prettier/issues/554/comments","events_url":"https://api.github.com/repos/jlongster/prettier/issues/554/events","html_url":"https://github.com/jlongster/prettier/issues/554","id":204640047,"number":554,"title":"Suggestion: add option to retain blank lines","user":{"login":"tqwhite","id":28464,"avatar_url":"https://avatars.githubusercontent.com/u/28464?v=3","gravatar_id":"","url":"https://api.github.com/users/tqwhite","html_url":"https://github.com/tqwhite","followers_url":"https://api.github.com/users/tqwhite/followers","following_url":"https://api.github.com/users/tqwhite/following{/other_user}","gists_url":"https://api.github.com/users/tqwhite/gists{/gist_id}","starred_url":"https://api.github.com/users/tqwhite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tqwhite/subscriptions","organizations_url":"https://api.github.com/users/tqwhite/orgs","repos_url":"https://api.github.com/users/tqwhite/repos","events_url":"https://api.github.com/users/tqwhite/events{/privacy}","received_events_url":"https://api.github.com/users/tqwhite/received_events","type":"User","site_admin":false},"labels":[{"id":526547976,"url":"https://api.github.com/repos/jlongster/prettier/labels/Needs%20More%20Information","name":"Needs More Information","color":"5319e7","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-02-01T16:53:15Z","updated_at":"2017-02-01T22:31:30Z","closed_at":null,"body":"Since I love prettier so much, I have integrated it into my text editor (bbedit by barebones) as a text filter. This allows me to run it in context with a command key. I don't even try to maintain format while coding. I just hit prettier every fifteen minutes.\r\n\r\nHowever, I use blank lines a lot to help me keep things organized visually. Since prettier does not retain blank lines, I have wrapped it in regular expressions to make blanks lines into comments that I later replace. With that, I get excellent prettier formatting and keep my blank lines.\r\n\r\nIt would be cooler if prettier had a switch like --retain-blank-lines\r\n\r\nOf course, this might not be possible. If so, I have my regular expressions so I can continue to love prettier."},"comment":{"url":"https://api.github.com/repos/jlongster/prettier/issues/comments/276804469","html_url":"https://github.com/jlongster/prettier/issues/554#issuecomment-276804469","issue_url":"https://api.github.com/repos/jlongster/prettier/issues/554","id":276804469,"user":{"login":"tqwhite","id":28464,"avatar_url":"https://avatars.githubusercontent.com/u/28464?v=3","gravatar_id":"","url":"https://api.github.com/users/tqwhite","html_url":"https://github.com/tqwhite","followers_url":"https://api.github.com/users/tqwhite/followers","following_url":"https://api.github.com/users/tqwhite/following{/other_user}","gists_url":"https://api.github.com/users/tqwhite/gists{/gist_id}","starred_url":"https://api.github.com/users/tqwhite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tqwhite/subscriptions","organizations_url":"https://api.github.com/users/tqwhite/orgs","repos_url":"https://api.github.com/users/tqwhite/repos","events_url":"https://api.github.com/users/tqwhite/events{/privacy}","received_events_url":"https://api.github.com/users/tqwhite/received_events","type":"User","site_admin":false},"created_at":"2017-02-01T22:31:30Z","updated_at":"2017-02-01T22:31:30Z","body":"You describe the behavior I see but not what I am hoping for.\r\n\r\nI often, while coding, set off the chunk I am working on with several blank lines before and after so I can easily see it when scrolling. Since my normal usage is to use prettier constantly, that multiple line grouping goes away. I suggest a switch so that I can keep them.\r\n\r\nMaybe the use of blank lines for navigation is peculiar to me. As I say, I can work around it but thought it might be a common use case.\r\n\r\n(ps, I also do have a key command that collapses the multiple lines when I am done. I'd have made a good VIM guy in another life. ;-) )"}}
{"actor":{"display_login":"tqwhite"}}