{"action":"created","issue":{"url":"https://api.github.com/repos/stylelint/stylelint/issues/1007","repository_url":"https://api.github.com/repos/stylelint/stylelint","labels_url":"https://api.github.com/repos/stylelint/stylelint/issues/1007/labels{/name}","comments_url":"https://api.github.com/repos/stylelint/stylelint/issues/1007/comments","events_url":"https://api.github.com/repos/stylelint/stylelint/issues/1007/events","html_url":"https://github.com/stylelint/stylelint/issues/1007","id":145427980,"number":1007,"title":"\"block-closing-brace-space-after\" should ignore whitespace after newline","user":{"login":"Nirazul","id":781476,"avatar_url":"https://avatars.githubusercontent.com/u/781476?v=3","gravatar_id":"","url":"https://api.github.com/users/Nirazul","html_url":"https://github.com/Nirazul","followers_url":"https://api.github.com/users/Nirazul/followers","following_url":"https://api.github.com/users/Nirazul/following{/other_user}","gists_url":"https://api.github.com/users/Nirazul/gists{/gist_id}","starred_url":"https://api.github.com/users/Nirazul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nirazul/subscriptions","organizations_url":"https://api.github.com/users/Nirazul/orgs","repos_url":"https://api.github.com/users/Nirazul/repos","events_url":"https://api.github.com/users/Nirazul/events{/privacy}","received_events_url":"https://api.github.com/users/Nirazul/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/stylelint/stylelint/labels/status:%20discussion","name":"status: discussion","color":"0023ee"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-04-02T23:03:05Z","updated_at":"2016-04-03T21:10:04Z","closed_at":null,"body":"> Describe the issue. Is it a bug or a feature request (new rule, new option, etc.)?\r\n\r\nBug:\r\nThere seems to be a subtle difference between the allowing and the forbidding state of the rule:\r\nAllowed > a single space is needed\r\nDisallowed > no white space characters, not even newline are allowed.\r\nI'd have expected a white space to be disallowed and a newline to be ok.\r\n\r\n> Which rule, if any, is this issue related to?\r\n\r\n`block-closing-brace-space-after`\r\n\r\n> What CSS is needed to reproduce this issue?\r\n\r\n```scss\r\n.a {}\r\n.b {}\r\n\r\n/* also: */\r\n.c {}\r\n\r\n.d {}\r\n```\r\n\r\n> What stylelint configuration is needed to reproduce this issue?\r\n\r\n```json\r\n{\r\n  \"rules\": {\r\n    \"block-closing-brace-space-after\": \"never-single-line\",\r\n  }\r\n}\r\n```\r\n\r\n> Which version of stylelint are you using?\r\n\r\n`HEAD`\r\n\r\n> How are you running stylelint: CLI, PostCSS plugin, Node API?\r\n\r\ngulp-stylelint\r\n\r\n> Does your issue relate to non-standard syntax (e.g. SCSS, nesting, etc.)?\r\n\r\nno\r\n\r\n> What did you expect to happen?\r\n\r\nNo warnings to be flagged.\r\n\r\n> What actually happened (e.g. what warnings or errors you are getting)?\r\n\r\nThe following warnings were flagged:\r\n```shell\r\ntest.css\r\n  1:6  error  Unexpected whitespace after \"}\" of a single-line block   block-closing-brace-space-after\r\n```\r\n\r\n<!--- Note: stackoverflow is our preferred QA forum - http://stackoverflow.com/questions/tagged/stylelint -->"},"comment":{"url":"https://api.github.com/repos/stylelint/stylelint/issues/comments/205054726","html_url":"https://github.com/stylelint/stylelint/issues/1007#issuecomment-205054726","issue_url":"https://api.github.com/repos/stylelint/stylelint/issues/1007","id":205054726,"user":{"login":"davidtheclark","id":628431,"avatar_url":"https://avatars.githubusercontent.com/u/628431?v=3","gravatar_id":"","url":"https://api.github.com/users/davidtheclark","html_url":"https://github.com/davidtheclark","followers_url":"https://api.github.com/users/davidtheclark/followers","following_url":"https://api.github.com/users/davidtheclark/following{/other_user}","gists_url":"https://api.github.com/users/davidtheclark/gists{/gist_id}","starred_url":"https://api.github.com/users/davidtheclark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidtheclark/subscriptions","organizations_url":"https://api.github.com/users/davidtheclark/orgs","repos_url":"https://api.github.com/users/davidtheclark/repos","events_url":"https://api.github.com/users/davidtheclark/events{/privacy}","received_events_url":"https://api.github.com/users/davidtheclark/received_events","type":"User","site_admin":false},"created_at":"2016-04-03T21:10:04Z","updated_at":"2016-04-03T21:10:04Z","body":"I'm hoping we can find a config that fits your intentions. So do you want to be able to do both of the following, regardless of what's inside the rules (that is, whether the declaration block is one line or multiple lines)?\r\n\r\n```css\r\na { color: pink; } b { top: 0; }\r\n```\r\n\r\n```css\r\na { color: pink; } \r\nb { top: 0; }\r\n```\r\n\r\nHow about this? Would you accept this?\r\n\r\n```css\r\na { \r\n  color: pink; \r\n} b { top: 0; }\r\n```\r\n\r\nI guess I'm trying to figure out what exactly you're trying to allow and what you're trying to block."}}