{"action":"closed","issue":{"url":"https://api.github.com/repos/postcss/postcss/issues/562","labels_url":"https://api.github.com/repos/postcss/postcss/issues/562/labels{/name}","comments_url":"https://api.github.com/repos/postcss/postcss/issues/562/comments","events_url":"https://api.github.com/repos/postcss/postcss/issues/562/events","html_url":"https://github.com/postcss/postcss/issues/562","id":106694083,"number":562,"title":"stringifying cloned rule doesn't add semicolon to last at-rule","user":{"login":"mahtd","id":6687627,"avatar_url":"https://avatars.githubusercontent.com/u/6687627?v=3","gravatar_id":"","url":"https://api.github.com/users/mahtd","html_url":"https://github.com/mahtd","followers_url":"https://api.github.com/users/mahtd/followers","following_url":"https://api.github.com/users/mahtd/following{/other_user}","gists_url":"https://api.github.com/users/mahtd/gists{/gist_id}","starred_url":"https://api.github.com/users/mahtd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mahtd/subscriptions","organizations_url":"https://api.github.com/users/mahtd/orgs","repos_url":"https://api.github.com/users/mahtd/repos","events_url":"https://api.github.com/users/mahtd/events{/privacy}","received_events_url":"https://api.github.com/users/mahtd/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/postcss/postcss/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-16T04:01:35Z","updated_at":"2015-10-08T18:25:16Z","closed_at":"2015-10-08T18:25:16Z","body":"This is related to #561, but for the stringifier. Stringifying a cloned rule with at-rules leaves the semicolon off the last at-rule. This produces CSS that the parser can't parse.\r\n\r\nInput\r\n\r\n```\r\nvar root = postcss.parse('a { @import \"b\"; @import \"c\"; }');\r\nvar rule = root.first;\r\nvar ruleCloned = rule.clone();\r\n\r\nconsole.log('Rule:\\n%s\\n', rule.toString());\r\nconsole.log('Cloned rule:\\n%s\\n', ruleCloned.toString());\r\n```\r\n\r\nOutput:\r\n\r\n```\r\nRule:\r\na { @import \"b\"; @import \"c\"; }\r\n\r\nCloned rule:\r\na {\r\n    @import \"b\";\r\n    @import \"c\"\r\n}\r\n```"}}