{"action":"created","issue":{"url":"https://api.github.com/repos/beautify-web/js-beautify/issues/611","labels_url":"https://api.github.com/repos/beautify-web/js-beautify/issues/611/labels{/name}","comments_url":"https://api.github.com/repos/beautify-web/js-beautify/issues/611/comments","events_url":"https://api.github.com/repos/beautify-web/js-beautify/issues/611/events","html_url":"https://github.com/beautify-web/js-beautify/pull/611","id":56094659,"number":611,"title":"Allow bool op first","user":{"login":"olsonpm","id":5957709,"avatar_url":"https://avatars.githubusercontent.com/u/5957709?v=3","gravatar_id":"","url":"https://api.github.com/users/olsonpm","html_url":"https://github.com/olsonpm","followers_url":"https://api.github.com/users/olsonpm/followers","following_url":"https://api.github.com/users/olsonpm/following{/other_user}","gists_url":"https://api.github.com/users/olsonpm/gists{/gist_id}","starred_url":"https://api.github.com/users/olsonpm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olsonpm/subscriptions","organizations_url":"https://api.github.com/users/olsonpm/orgs","repos_url":"https://api.github.com/users/olsonpm/repos","events_url":"https://api.github.com/users/olsonpm/events{/privacy}","received_events_url":"https://api.github.com/users/olsonpm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2015-01-30T22:42:11Z","updated_at":"2015-07-10T18:47:53Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/beautify-web/js-beautify/pulls/611","html_url":"https://github.com/beautify-web/js-beautify/pull/611","diff_url":"https://github.com/beautify-web/js-beautify/pull/611.diff","patch_url":"https://github.com/beautify-web/js-beautify/pull/611.patch"},"body":"allowing boolean opoerator-first notation via option 'allow_bool_op_first'.  Only changing node version for now as python can wait until changes are final."},"comment":{"url":"https://api.github.com/repos/beautify-web/js-beautify/issues/comments/120492211","html_url":"https://github.com/beautify-web/js-beautify/pull/611#issuecomment-120492211","issue_url":"https://api.github.com/repos/beautify-web/js-beautify/issues/611","id":120492211,"user":{"login":"olsonpm","id":5957709,"avatar_url":"https://avatars.githubusercontent.com/u/5957709?v=3","gravatar_id":"","url":"https://api.github.com/users/olsonpm","html_url":"https://github.com/olsonpm","followers_url":"https://api.github.com/users/olsonpm/followers","following_url":"https://api.github.com/users/olsonpm/following{/other_user}","gists_url":"https://api.github.com/users/olsonpm/gists{/gist_id}","starred_url":"https://api.github.com/users/olsonpm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olsonpm/subscriptions","organizations_url":"https://api.github.com/users/olsonpm/orgs","repos_url":"https://api.github.com/users/olsonpm/repos","events_url":"https://api.github.com/users/olsonpm/events{/privacy}","received_events_url":"https://api.github.com/users/olsonpm/received_events","type":"User","site_admin":false},"created_at":"2015-07-10T18:47:53Z","updated_at":"2015-07-10T18:47:53Z","body":"> If someone wants to keep that original structure, they should use preserve_newline. \r\n\r\nAm I doing something wrong then?  The default behavior (sans preserve_newline) as I'm testing will resolve\r\n```javascript\r\nvar a = b\r\n+\r\nc;\r\n```\r\nto\r\n```javascript\r\nvar a = b +\r\n    c;\r\n```\r\nAnd the operator_position as currently written behaves the way you're expecting.\r\n\r\nConcerning #2, I will rewrite the logic as you suggest and follow up with a separate, more appropriately titled PR.  Thanks for the feedback."}}