{"action":"created","issue":{"url":"https://api.github.com/repos/Glavin001/atom-beautify/issues/882","repository_url":"https://api.github.com/repos/Glavin001/atom-beautify","labels_url":"https://api.github.com/repos/Glavin001/atom-beautify/issues/882/labels{/name}","comments_url":"https://api.github.com/repos/Glavin001/atom-beautify/issues/882/comments","events_url":"https://api.github.com/repos/Glavin001/atom-beautify/issues/882/events","html_url":"https://github.com/Glavin001/atom-beautify/issues/882","id":144935676,"number":882,"title":"Over Indenting","user":{"login":"thehulke","id":9673293,"avatar_url":"https://avatars.githubusercontent.com/u/9673293?v=3","gravatar_id":"","url":"https://api.github.com/users/thehulke","html_url":"https://github.com/thehulke","followers_url":"https://api.github.com/users/thehulke/followers","following_url":"https://api.github.com/users/thehulke/following{/other_user}","gists_url":"https://api.github.com/users/thehulke/gists{/gist_id}","starred_url":"https://api.github.com/users/thehulke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thehulke/subscriptions","organizations_url":"https://api.github.com/users/thehulke/orgs","repos_url":"https://api.github.com/users/thehulke/repos","events_url":"https://api.github.com/users/thehulke/events{/privacy}","received_events_url":"https://api.github.com/users/thehulke/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Glavin001/atom-beautify/labels/third-party%20bug","name":"third-party bug","color":"f7c6c7"}],"state":"open","locked":false,"assignee":{"login":"prettydiff","id":524902,"avatar_url":"https://avatars.githubusercontent.com/u/524902?v=3","gravatar_id":"","url":"https://api.github.com/users/prettydiff","html_url":"https://github.com/prettydiff","followers_url":"https://api.github.com/users/prettydiff/followers","following_url":"https://api.github.com/users/prettydiff/following{/other_user}","gists_url":"https://api.github.com/users/prettydiff/gists{/gist_id}","starred_url":"https://api.github.com/users/prettydiff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prettydiff/subscriptions","organizations_url":"https://api.github.com/users/prettydiff/orgs","repos_url":"https://api.github.com/users/prettydiff/repos","events_url":"https://api.github.com/users/prettydiff/events{/privacy}","received_events_url":"https://api.github.com/users/prettydiff/received_events","type":"User","site_admin":false},"milestone":null,"comments":5,"created_at":"2016-03-31T15:33:34Z","updated_at":"2016-04-01T18:24:31Z","closed_at":null,"body":"### Hi, I am using the default deatures, didn't touched nothing\r\n\r\nThe results of beautification are not what I expect.\r\ninstead, got this:\r\n```\r\n<div>\r\n\t\t<Widget txt={this.state.txt} update={this.update}/>\r\n                <p>\r\n                              Hello\r\n               </p>\r\n</div>\r\n```\r\n### Expected Results\r\n\r\nThe beautified code should have looked like:\r\n\r\n```\r\n<div>\r\n\t<Widget txt={this.state.txt} update={this.update}/>\r\n</div>\r\n```\r\n\r\n### Steps to Reproduce\r\n\r\n1. Add code to Atom editor\r\n2. Run command `Atom Beautify: Beautify Editor`\r\n3. This beautified code does not look right!\r\n\r\n### Debug\r\n\r\nHere is a link to the `debug.md` Gist: https://gist.github.com/...\r\n\r\n#### How to create `debug.md` Gist\r\n\r\nNote that this will include a copy of your code.\r\nIf your code is private, please create a different sample of code that reproduces the problem.\r\n\r\n1. In the Atom [command-palette](https://atom.io/packages/command-palette), \r\nsearch for and run the command `Atom Beautify: Help Debug Editor`. \r\nThe debugging results will be copied to your clipboard.  \r\n2. Create a new Gist at https://gist.github.com/  \r\n3. Create a file in your new Gist called `debug.md`.  \r\n4. Paste your debugging results from Atom beautify into `debug.md` file in your Gist.  \r\n5. Add a link to your Gist in your new Issue.\r\n\r\n# Checklist\r\n\r\n- [x] I have tried uninstalling and reinstalling Atom Beautify to ensure it installed properly\r\n- [x] Searched for existing Atom Beautify Issues at https://github.com/Glavin001/atom-beautify/issues \r\nso I know this is not a duplicate issue\r\n- [ ] Generated debugging information and added link for `debug.md` Gist to this issue\r\n"},"comment":{"url":"https://api.github.com/repos/Glavin001/atom-beautify/issues/comments/204502647","html_url":"https://github.com/Glavin001/atom-beautify/issues/882#issuecomment-204502647","issue_url":"https://api.github.com/repos/Glavin001/atom-beautify/issues/882","id":204502647,"user":{"login":"Glavin001","id":1885333,"avatar_url":"https://avatars.githubusercontent.com/u/1885333?v=3","gravatar_id":"","url":"https://api.github.com/users/Glavin001","html_url":"https://github.com/Glavin001","followers_url":"https://api.github.com/users/Glavin001/followers","following_url":"https://api.github.com/users/Glavin001/following{/other_user}","gists_url":"https://api.github.com/users/Glavin001/gists{/gist_id}","starred_url":"https://api.github.com/users/Glavin001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Glavin001/subscriptions","organizations_url":"https://api.github.com/users/Glavin001/orgs","repos_url":"https://api.github.com/users/Glavin001/repos","events_url":"https://api.github.com/users/Glavin001/events{/privacy}","received_events_url":"https://api.github.com/users/Glavin001/received_events","type":"User","site_admin":false},"created_at":"2016-04-01T18:24:31Z","updated_at":"2016-04-01T18:24:31Z","body":"The problem is in your [EditorConfig](http://editorconfig.org/) options under section https://gist.github.com/thehulke/753c2296fe9590bf0ca0b51fbc8358d2#beautification-options :\r\n\r\n```\r\n{\r\n    \"_default\": {\r\n        \"charset\": \"utf-8\",\r\n        \"indent_style\": \"tab\",\r\n        \"end_of_line\": \"lf\",\r\n        \"insert_final_newline\": true,\r\n        \"trim_trailing_whitespace\": true,\r\n        \"indent_size\": \"tab\",\r\n        \"indent_char\": \"\\t\",\r\n        \"indent_with_tabs\": true\r\n    }\r\n}\r\n```\r\n\r\nNotice the `indent_size` is `tab`.\r\n\r\nEditorConfig does not tell *where* it found the `.editorconfig` file so I recommend that you start from your desired file and move upwards until your find it. Then ensure it is correct.\r\nThere may be a problem with EditorConfig support in particular. The applicable code can be found at https://github.com/Glavin001/atom-beautify/blob/master/src/beautifiers/index.coffee#L700-L725 if you are interested in debugging on your own.\r\n"}}