{"action":"created","issue":{"url":"https://api.github.com/repos/beautify-web/js-beautify/issues/735","repository_url":"https://api.github.com/repos/beautify-web/js-beautify","labels_url":"https://api.github.com/repos/beautify-web/js-beautify/issues/735/labels{/name}","comments_url":"https://api.github.com/repos/beautify-web/js-beautify/issues/735/comments","events_url":"https://api.github.com/repos/beautify-web/js-beautify/issues/735/events","html_url":"https://github.com/beautify-web/js-beautify/pull/735","id":95358087,"number":735,"title":"first draft of operator_position functionality","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":25,"created_at":"2015-07-16T06:00:09Z","updated_at":"2016-02-03T08:47:31Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/beautify-web/js-beautify/pulls/735","html_url":"https://github.com/beautify-web/js-beautify/pull/735","diff_url":"https://github.com/beautify-web/js-beautify/pull/735.diff","patch_url":"https://github.com/beautify-web/js-beautify/pull/735.patch"},"body":" - Added verification of operator_position option.  Throws error if\r\n    invalid.\r\n - Possible operator_position options are:\r\n    1) undefined (use default behavior)\r\n    2) 'before_newline'\r\n    3) 'after_newline'\r\n    4) 'preserve_newline'\r\n    5) 'remove_newline'\r\n - Moved some code around in handle_operator in order to separate\r\n    conflicting logic when handling operators.\r\n - Modified allow_wrap_or_preserved_newline to handle operator\r\n    preserved newlines as well.\r\n - Fixed a few boolean variable assignments within if statements.\r\n    Though not always the case, the expression within the if can\r\n    be assigned directly to the variable\r\n - Added -> built tests\r\n - Within the tests, added an 'inputlib.js' file which holds common\r\n    input arrays.  This was necessary due to the matrices not working\r\n    cleanly with default behavior.\r\n - It is worth noting that although the python test file was modified,\r\n    this is a result of the built test and not actually providing\r\n    a python port for this option (yet)."},"comment":{"url":"https://api.github.com/repos/beautify-web/js-beautify/issues/comments/179096967","html_url":"https://github.com/beautify-web/js-beautify/pull/735#issuecomment-179096967","issue_url":"https://api.github.com/repos/beautify-web/js-beautify/issues/735","id":179096967,"user":{"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},"created_at":"2016-02-03T08:47:31Z","updated_at":"2016-02-03T08:47:31Z","body":"Take a look at \r\nhttps://github.com/beautify-web/js-beautify/tree/feature/add-operator-position\r\n"}}