{"action":"created","issue":{"url":"https://api.github.com/repos/victorporof/Sublime-HTMLPrettify/issues/199","labels_url":"https://api.github.com/repos/victorporof/Sublime-HTMLPrettify/issues/199/labels{/name}","comments_url":"https://api.github.com/repos/victorporof/Sublime-HTMLPrettify/issues/199/comments","events_url":"https://api.github.com/repos/victorporof/Sublime-HTMLPrettify/issues/199/events","html_url":"https://github.com/victorporof/Sublime-HTMLPrettify/issues/199","id":60223779,"number":199,"title":"JavaScript Invalid re-formatting","user":{"login":"davbro63","id":11368646,"avatar_url":"https://avatars.githubusercontent.com/u/11368646?v=3","gravatar_id":"","url":"https://api.github.com/users/davbro63","html_url":"https://github.com/davbro63","followers_url":"https://api.github.com/users/davbro63/followers","following_url":"https://api.github.com/users/davbro63/following{/other_user}","gists_url":"https://api.github.com/users/davbro63/gists{/gist_id}","starred_url":"https://api.github.com/users/davbro63/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davbro63/subscriptions","organizations_url":"https://api.github.com/users/davbro63/orgs","repos_url":"https://api.github.com/users/davbro63/repos","events_url":"https://api.github.com/users/davbro63/events{/privacy}","received_events_url":"https://api.github.com/users/davbro63/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-07T20:49:16Z","updated_at":"2015-03-17T20:46:10Z","closed_at":"2015-03-17T20:46:10Z","body":"This code produces an extra indent after the function header with default preferences:\r\n```javascript\r\nfunction exit(code) {\r\n        setTimeout(function() {\r\n            phantom.exit(code);\r\n        }, 0);\r\n        phantom.onError = function() {};\r\n    }\r\n    // Comment\r\n```\r\nThe expected formatting is:\r\n```javascript\r\nfunction exit(code) {\r\n    setTimeout(function() {\r\n        phantom.exit(code);\r\n    }, 0);\r\n    phantom.onError = function() {};\r\n}\r\n// Comment\r\n```\r\n\r\nThe incorrect formatting does not happen if the trailing // Comment is not present\r\n"},"comment":{"url":"https://api.github.com/repos/victorporof/Sublime-HTMLPrettify/issues/comments/82592599","html_url":"https://github.com/victorporof/Sublime-HTMLPrettify/issues/199#issuecomment-82592599","issue_url":"https://api.github.com/repos/victorporof/Sublime-HTMLPrettify/issues/199","id":82592599,"user":{"login":"victorporof","id":248899,"avatar_url":"https://avatars.githubusercontent.com/u/248899?v=3","gravatar_id":"","url":"https://api.github.com/users/victorporof","html_url":"https://github.com/victorporof","followers_url":"https://api.github.com/users/victorporof/followers","following_url":"https://api.github.com/users/victorporof/following{/other_user}","gists_url":"https://api.github.com/users/victorporof/gists{/gist_id}","starred_url":"https://api.github.com/users/victorporof/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/victorporof/subscriptions","organizations_url":"https://api.github.com/users/victorporof/orgs","repos_url":"https://api.github.com/users/victorporof/repos","events_url":"https://api.github.com/users/victorporof/events{/privacy}","received_events_url":"https://api.github.com/users/victorporof/received_events","type":"User","site_admin":false},"created_at":"2015-03-17T20:46:10Z","updated_at":"2015-03-17T20:46:10Z","body":"Please file this bug at https://github.com/beautify-web/js-beautify"}}