{"action":"reopened","issue":{"url":"https://api.github.com/repos/beautify-web/js-beautify/issues/487","repository_url":"https://api.github.com/repos/beautify-web/js-beautify","labels_url":"https://api.github.com/repos/beautify-web/js-beautify/issues/487/labels{/name}","comments_url":"https://api.github.com/repos/beautify-web/js-beautify/issues/487/comments","events_url":"https://api.github.com/repos/beautify-web/js-beautify/issues/487/events","html_url":"https://github.com/beautify-web/js-beautify/issues/487","id":36984292,"number":487,"title":"Add \"collapse-one-line\" option for braces ","user":{"login":"sevin7676","id":5360920,"avatar_url":"https://avatars.githubusercontent.com/u/5360920?v=3","gravatar_id":"","url":"https://api.github.com/users/sevin7676","html_url":"https://github.com/sevin7676","followers_url":"https://api.github.com/users/sevin7676/followers","following_url":"https://api.github.com/users/sevin7676/following{/other_user}","gists_url":"https://api.github.com/users/sevin7676/gists{/gist_id}","starred_url":"https://api.github.com/users/sevin7676/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sevin7676/subscriptions","organizations_url":"https://api.github.com/users/sevin7676/orgs","repos_url":"https://api.github.com/users/sevin7676/repos","events_url":"https://api.github.com/users/sevin7676/events{/privacy}","received_events_url":"https://api.github.com/users/sevin7676/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/beautify-web/js-beautify/labels/enhancement","name":"enhancement","color":"0b02e1"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/beautify-web/js-beautify/milestones/18","html_url":"https://github.com/beautify-web/js-beautify/milestones/v1.6.1","labels_url":"https://api.github.com/repos/beautify-web/js-beautify/milestones/18/labels","id":1551801,"number":18,"title":"v1.6.1","description":"Fixes for regressions found in 1.6.0\r\n","creator":{"login":"bitwiseman","id":1958953,"avatar_url":"https://avatars.githubusercontent.com/u/1958953?v=3","gravatar_id":"","url":"https://api.github.com/users/bitwiseman","html_url":"https://github.com/bitwiseman","followers_url":"https://api.github.com/users/bitwiseman/followers","following_url":"https://api.github.com/users/bitwiseman/following{/other_user}","gists_url":"https://api.github.com/users/bitwiseman/gists{/gist_id}","starred_url":"https://api.github.com/users/bitwiseman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bitwiseman/subscriptions","organizations_url":"https://api.github.com/users/bitwiseman/orgs","repos_url":"https://api.github.com/users/bitwiseman/repos","events_url":"https://api.github.com/users/bitwiseman/events{/privacy}","received_events_url":"https://api.github.com/users/bitwiseman/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":9,"state":"closed","created_at":"2016-01-29T18:32:26Z","updated_at":"2016-02-02T18:57:39Z","due_on":"2017-01-31T08:00:00Z","closed_at":"2016-01-30T04:25:31Z"},"comments":9,"created_at":"2014-07-02T13:57:58Z","updated_at":"2016-02-02T18:57:39Z","closed_at":null,"body":"Would it be possible to add an option that makes brackets stay on the same line after a conditional statement IF there is only one line of code after the conditional?\r\n\r\n**Example:**\r\n```js\r\nif(a==1) { a++; }\r\n```\r\n*right now this gets turned into:*\r\n```js \r\nif (a == 1) {\r\n      a++;\r\n}\r\n```\r\n*or (depending on options):*\r\n```js\r\nif (a == 1)\r\n{\r\n    a++;\r\n}\r\n```\r\n\r\nUsing brackets for a single line after a conditional is good practice as it prevents ambiguity and stupid mistakes for what is going to execute after the conditional. However, reading code that requires either 3 or 4 lines *(depending on current options)* for a single line conditional and single line result is tedious as it takes up far too much space.\r\n\r\n"}}