{"action":"opened","issue":{"url":"https://api.github.com/repos/Glavin001/atom-beautify/issues/471","labels_url":"https://api.github.com/repos/Glavin001/atom-beautify/issues/471/labels{/name}","comments_url":"https://api.github.com/repos/Glavin001/atom-beautify/issues/471/comments","events_url":"https://api.github.com/repos/Glavin001/atom-beautify/issues/471/events","html_url":"https://github.com/Glavin001/atom-beautify/issues/471","id":96081560,"number":471,"title":"Duplicating content when running beautify","user":{"login":"halvves","id":9411730,"avatar_url":"https://avatars.githubusercontent.com/u/9411730?v=3","gravatar_id":"","url":"https://api.github.com/users/halvves","html_url":"https://github.com/halvves","followers_url":"https://api.github.com/users/halvves/followers","following_url":"https://api.github.com/users/halvves/following{/other_user}","gists_url":"https://api.github.com/users/halvves/gists{/gist_id}","starred_url":"https://api.github.com/users/halvves/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/halvves/subscriptions","organizations_url":"https://api.github.com/users/halvves/orgs","repos_url":"https://api.github.com/users/halvves/repos","events_url":"https://api.github.com/users/halvves/events{/privacy}","received_events_url":"https://api.github.com/users/halvves/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-20T14:50:23Z","updated_at":"2015-07-20T14:50:23Z","closed_at":null,"body":"After the recent update, whenever I try to run beautify on highlighted content, it creates a duplicate. It seems as though its being performed as a second step from the initial \"beautify\", because when I \"undo\", the duplicate is removed, but the beautify edit remains.\r\n\r\n**Before Beautify**\r\n![beautifybug01](https://cloud.githubusercontent.com/assets/9411730/8778565/451cd30a-2ec4-11e5-8034-06ac64f9c44e.png)\r\n\r\n**After Beautify**\r\n![beautifybug02](https://cloud.githubusercontent.com/assets/9411730/8778564/44fd0ce6-2ec4-11e5-9bad-f766df4d2d91.png)\r\n\r\n**After Undo**\r\n![beautifybug03](https://cloud.githubusercontent.com/assets/9411730/8778637/a34e62cc-2ec4-11e5-9141-5dd2b0ee2920.png)\r\n"}}