{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/issues/1196","repository_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt","labels_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/issues/1196/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/issues/1196/comments","events_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/issues/1196/events","html_url":"https://github.com/rust-lang-nursery/rustfmt/issues/1196","id":184963522,"number":1196,"title":"rustfmt removes empty lines between block and doc comments","user":{"login":"nokaa","id":15950668,"avatar_url":"https://avatars.githubusercontent.com/u/15950668?v=3","gravatar_id":"","url":"https://api.github.com/users/nokaa","html_url":"https://github.com/nokaa","followers_url":"https://api.github.com/users/nokaa/followers","following_url":"https://api.github.com/users/nokaa/following{/other_user}","gists_url":"https://api.github.com/users/nokaa/gists{/gist_id}","starred_url":"https://api.github.com/users/nokaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nokaa/subscriptions","organizations_url":"https://api.github.com/users/nokaa/orgs","repos_url":"https://api.github.com/users/nokaa/repos","events_url":"https://api.github.com/users/nokaa/events{/privacy}","received_events_url":"https://api.github.com/users/nokaa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-24T21:45:34Z","updated_at":"2016-10-24T23:30:07Z","closed_at":null,"body":"With `normalize_comments` set to `false`, running rustfmt can lead to empty lines between a block comment and a doc comment being removed.\r\n\r\nHere is some example code:\r\n```rust\r\n/// Doc comment for func1\r\n/*fn func1() {\r\n    let a = 5;\r\n}*/\r\n\r\n/// Doc comment for func2\r\nfn func2() {\r\n    let b = 5;\r\n}\r\n```\r\n\r\nWhen rustfmt is run, the fifth line will be deleted. This line is only deleted if line 6 is a doc comment; normal and block comments work properly. \r\nIt seems that an arbitrary number of empty lines can be between the block comment and the doc comment, they will all be deleted."},"comment":{"url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/issues/comments/255894851","html_url":"https://github.com/rust-lang-nursery/rustfmt/issues/1196#issuecomment-255894851","issue_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/issues/1196","id":255894851,"user":{"login":"nrc","id":762626,"avatar_url":"https://avatars.githubusercontent.com/u/762626?v=3","gravatar_id":"","url":"https://api.github.com/users/nrc","html_url":"https://github.com/nrc","followers_url":"https://api.github.com/users/nrc/followers","following_url":"https://api.github.com/users/nrc/following{/other_user}","gists_url":"https://api.github.com/users/nrc/gists{/gist_id}","starred_url":"https://api.github.com/users/nrc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nrc/subscriptions","organizations_url":"https://api.github.com/users/nrc/orgs","repos_url":"https://api.github.com/users/nrc/repos","events_url":"https://api.github.com/users/nrc/events{/privacy}","received_events_url":"https://api.github.com/users/nrc/received_events","type":"User","site_admin":false},"created_at":"2016-10-24T23:30:07Z","updated_at":"2016-10-24T23:30:07Z","body":"Are you using master? We merged a few commits recently that might address this issue."}}
{"actor":{"display_login":"nrc"}}