{"action":"opened","issue":{"url":"https://api.github.com/repos/beautify-web/js-beautify/issues/669","labels_url":"https://api.github.com/repos/beautify-web/js-beautify/issues/669/labels{/name}","comments_url":"https://api.github.com/repos/beautify-web/js-beautify/issues/669/comments","events_url":"https://api.github.com/repos/beautify-web/js-beautify/issues/669/events","html_url":"https://github.com/beautify-web/js-beautify/issues/669","id":68577416,"number":669,"title":"cannot add braces for short statements","user":{"login":"cuixiping","id":1104492,"avatar_url":"https://avatars.githubusercontent.com/u/1104492?v=3","gravatar_id":"","url":"https://api.github.com/users/cuixiping","html_url":"https://github.com/cuixiping","followers_url":"https://api.github.com/users/cuixiping/followers","following_url":"https://api.github.com/users/cuixiping/following{/other_user}","gists_url":"https://api.github.com/users/cuixiping/gists{/gist_id}","starred_url":"https://api.github.com/users/cuixiping/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cuixiping/subscriptions","organizations_url":"https://api.github.com/users/cuixiping/orgs","repos_url":"https://api.github.com/users/cuixiping/repos","events_url":"https://api.github.com/users/cuixiping/events{/privacy}","received_events_url":"https://api.github.com/users/cuixiping/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-15T05:22:38Z","updated_at":"2015-04-15T05:22:38Z","closed_at":null,"body":"sample code:\r\n\r\n    if (1) alert(1)\r\n    for (;;) alert(1)\r\n\r\nexpected result is:\r\n\r\n    if (1) {\r\n        alert(1);\r\n    }\r\n    for (;;) {\r\n        alert(1);\r\n    }\r\n\r\nactually result is:\r\n\r\n    if (1) alert(1)\r\n    for (;;) alert(1)\r\n\r\neven I checked the option **Braces with control statement**.\r\nNo braces and semicolons are added.\r\n\r\nI tested on the web site: http://jsbeautifier.org/?without-codemirror"}}