{"action":"closed","issue":{"url":"https://api.github.com/repos/beautify-web/js-beautify/issues/1028","repository_url":"https://api.github.com/repos/beautify-web/js-beautify","labels_url":"https://api.github.com/repos/beautify-web/js-beautify/issues/1028/labels{/name}","comments_url":"https://api.github.com/repos/beautify-web/js-beautify/issues/1028/comments","events_url":"https://api.github.com/repos/beautify-web/js-beautify/issues/1028/events","html_url":"https://github.com/beautify-web/js-beautify/issues/1028","id":177078345,"number":1028,"title":"this is a general question, need help with js beautify","user":{"login":"BruceHem","id":15667259,"avatar_url":"https://avatars.githubusercontent.com/u/15667259?v=3","gravatar_id":"","url":"https://api.github.com/users/BruceHem","html_url":"https://github.com/BruceHem","followers_url":"https://api.github.com/users/BruceHem/followers","following_url":"https://api.github.com/users/BruceHem/following{/other_user}","gists_url":"https://api.github.com/users/BruceHem/gists{/gist_id}","starred_url":"https://api.github.com/users/BruceHem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BruceHem/subscriptions","organizations_url":"https://api.github.com/users/BruceHem/orgs","repos_url":"https://api.github.com/users/BruceHem/repos","events_url":"https://api.github.com/users/BruceHem/events{/privacy}","received_events_url":"https://api.github.com/users/BruceHem/received_events","type":"User","site_admin":false},"labels":[{"id":33346798,"url":"https://api.github.com/repos/beautify-web/js-beautify/labels/discussion","name":"discussion","color":"d7e102","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-15T03:18:40Z","updated_at":"2016-12-26T20:28:54Z","closed_at":"2016-12-26T20:28:54Z","body":"# Description\n\n> I want to know why i getting the below behavior.\n# Input\n\nThe code looked like this before beautification:\n\n```\nif (yield this.req.validate(this.body, {\n    'username': 'required',\n    'password': 'required'\n})) return;\n```\n# Expected Output\n\nThe code should have looked like this after beautification:\n\n```\nif (yield this.req.validate(this.body, {\n    'username': 'required',\n    'password': 'required'\n})) return;\n```\n# Actual Output\n\nThe  code actually looked like this after beautification:\n\n```\nif (yield this.req.validate(this.body, {\n        'username': 'required',\n        'password': 'required'\n    })) return;\n```\n# Steps to Reproduce\n## Environment\n\nOS: Elementary OS Loki\n## Settings\n\nExample:\n\n``` json\n{\n    \"indent_size\": 4,\n    \"indent_char\": \" \",\n    \"eol\": \"\\n\",\n    \"indent_level\": 0,\n    \"indent_with_tabs\": false,\n    \"preserve_newlines\": true,\n    \"max_preserve_newlines\": 10,\n    \"jslint_happy\": false,\n    \"space_after_anon_function\": false,\n    \"brace_style\": \"collapse-preserve-inline\",\n    \"keep_array_indentation\": false,\n    \"keep_function_indentation\": false,\n    \"space_before_conditional\": true,\n    \"break_chained_methods\": false,\n    \"eval_code\": false,\n    \"unescape_strings\": false,\n    \"wrap_line_length\": 0,\n    \"wrap_attributes\": \"auto\",\n    \"wrap_attributes_indent_size\": 4,\n    \"end_with_newline\": false\n}\n```\n"}}
{"actor":{"display_login":"bitwiseman"}}