{"action":"created","issue":{"url":"https://api.github.com/repos/dart-lang/dart_style/issues/295","labels_url":"https://api.github.com/repos/dart-lang/dart_style/issues/295/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/dart_style/issues/295/comments","events_url":"https://api.github.com/repos/dart-lang/dart_style/issues/295/events","html_url":"https://github.com/dart-lang/dart_style/issues/295","id":85614050,"number":295,"title":"formatter: too eager to remove line breaks in some cases?","user":{"login":"DartBot","id":8958862,"avatar_url":"https://avatars.githubusercontent.com/u/8958862?v=3","gravatar_id":"","url":"https://api.github.com/users/DartBot","html_url":"https://github.com/DartBot","followers_url":"https://api.github.com/users/DartBot/followers","following_url":"https://api.github.com/users/DartBot/following{/other_user}","gists_url":"https://api.github.com/users/DartBot/gists{/gist_id}","starred_url":"https://api.github.com/users/DartBot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DartBot/subscriptions","organizations_url":"https://api.github.com/users/DartBot/orgs","repos_url":"https://api.github.com/users/DartBot/repos","events_url":"https://api.github.com/users/DartBot/events{/privacy}","received_events_url":"https://api.github.com/users/DartBot/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dart-lang/dart_style/labels/AssumedStale","name":"AssumedStale","color":"ededed"},{"url":"https://api.github.com/repos/dart-lang/dart_style/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/dart-lang/dart_style/labels/Priority-Medium","name":"Priority-Medium","color":"ededed"}],"state":"open","locked":false,"assignee":{"login":"pq","id":67586,"avatar_url":"https://avatars.githubusercontent.com/u/67586?v=3","gravatar_id":"","url":"https://api.github.com/users/pq","html_url":"https://github.com/pq","followers_url":"https://api.github.com/users/pq/followers","following_url":"https://api.github.com/users/pq/following{/other_user}","gists_url":"https://api.github.com/users/pq/gists{/gist_id}","starred_url":"https://api.github.com/users/pq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pq/subscriptions","organizations_url":"https://api.github.com/users/pq/orgs","repos_url":"https://api.github.com/users/pq/repos","events_url":"https://api.github.com/users/pq/events{/privacy}","received_events_url":"https://api.github.com/users/pq/received_events","type":"User","site_admin":false},"milestone":null,"comments":9,"created_at":"2015-06-05T19:23:42Z","updated_at":"2015-06-05T19:25:44Z","closed_at":null,"body":"<a href=\"https://github.com/kevmoo\"><img src=\"https://avatars.githubusercontent.com/u/17034?v=3\" align=\"left\" width=\"96\" height=\"96\"hspace=\"10\"></img></a> **Issue by [kevmoo](https://github.com/kevmoo)**\n_Originally opened as dart-lang/sdk#15902_\n\n----\n\nI like cascading futures like so:\n\nreturn getStatusCode2(virDir, '/$name')\n&nbsp;&nbsp;&nbsp;&nbsp;.then((result) {\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;expect(result, expected);\n&nbsp;&nbsp;&nbsp;&nbsp;});\n\n\nAs is, the formatter reformats this to:\n\nreturn getStatusCode2(virDir, '/$name').then((result) {\n&nbsp;&nbsp;expect(result, expected);\n});\n\nI'd rather it not. :-)"},"comment":{"url":"https://api.github.com/repos/dart-lang/dart_style/issues/comments/109412849","html_url":"https://github.com/dart-lang/dart_style/issues/295#issuecomment-109412849","issue_url":"https://api.github.com/repos/dart-lang/dart_style/issues/295","id":109412849,"user":{"login":"DartBot","id":8958862,"avatar_url":"https://avatars.githubusercontent.com/u/8958862?v=3","gravatar_id":"","url":"https://api.github.com/users/DartBot","html_url":"https://github.com/DartBot","followers_url":"https://api.github.com/users/DartBot/followers","following_url":"https://api.github.com/users/DartBot/following{/other_user}","gists_url":"https://api.github.com/users/DartBot/gists{/gist_id}","starred_url":"https://api.github.com/users/DartBot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DartBot/subscriptions","organizations_url":"https://api.github.com/users/DartBot/orgs","repos_url":"https://api.github.com/users/DartBot/repos","events_url":"https://api.github.com/users/DartBot/events{/privacy}","received_events_url":"https://api.github.com/users/DartBot/received_events","type":"User","site_admin":false},"created_at":"2015-06-05T19:25:44Z","updated_at":"2015-06-05T19:25:44Z","body":"<a href=\"https://github.com/kasperl\"><img src=\"https://avatars.githubusercontent.com/u/2156198?v=3\" align=\"left\" width=\"48\" height=\"48\"hspace=\"10\"></img></a> **Comment by [kasperl](https://github.com/kasperl)**\n\n----\n\n*Removed this from the [1.5](../milestones/1.5) milestone.*\n*Added this to the [1.6](../milestones/1.6) milestone.*\n"}}