{"action":"created","issue":{"url":"https://api.github.com/repos/Glavin001/atom-beautify/issues/215","labels_url":"https://api.github.com/repos/Glavin001/atom-beautify/issues/215/labels{/name}","comments_url":"https://api.github.com/repos/Glavin001/atom-beautify/issues/215/comments","events_url":"https://api.github.com/repos/Glavin001/atom-beautify/issues/215/events","html_url":"https://github.com/Glavin001/atom-beautify/issues/215","id":57731963,"number":215,"title":"Writing extra characters when beautifying python","user":{"login":"marcoslhc","id":113342,"avatar_url":"https://avatars.githubusercontent.com/u/113342?v=3","gravatar_id":"","url":"https://api.github.com/users/marcoslhc","html_url":"https://github.com/marcoslhc","followers_url":"https://api.github.com/users/marcoslhc/followers","following_url":"https://api.github.com/users/marcoslhc/following{/other_user}","gists_url":"https://api.github.com/users/marcoslhc/gists{/gist_id}","starred_url":"https://api.github.com/users/marcoslhc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcoslhc/subscriptions","organizations_url":"https://api.github.com/users/marcoslhc/orgs","repos_url":"https://api.github.com/users/marcoslhc/repos","events_url":"https://api.github.com/users/marcoslhc/events{/privacy}","received_events_url":"https://api.github.com/users/marcoslhc/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Glavin001/atom-beautify/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/Glavin001/atom-beautify/labels/high%20priority","name":"high priority","color":"e11d21"}],"state":"open","locked":false,"assignee":{"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},"milestone":{"url":"https://api.github.com/repos/Glavin001/atom-beautify/milestones/1","html_url":"https://github.com/Glavin001/atom-beautify/milestones/v1.0.0","labels_url":"https://api.github.com/repos/Glavin001/atom-beautify/milestones/1/labels","id":718975,"number":1,"title":"v1.0.0","description":"","creator":{"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},"open_issues":28,"closed_issues":34,"state":"open","created_at":"2014-07-12T13:56:15Z","updated_at":"2015-03-12T17:12:46Z","due_on":"2015-03-14T03:00:00Z","closed_at":null},"comments":18,"created_at":"2015-02-15T14:28:16Z","updated_at":"2015-03-12T19:34:56Z","closed_at":null,"body":"When I save any python code this is added at the beginning of the file:\r\n```\r\n\u001B(B\u001B[m\u001B(B\u001B[mfrom ...\r\n```"},"comment":{"url":"https://api.github.com/repos/Glavin001/atom-beautify/issues/comments/78585350","html_url":"https://github.com/Glavin001/atom-beautify/issues/215#issuecomment-78585350","issue_url":"https://api.github.com/repos/Glavin001/atom-beautify/issues/215","id":78585350,"user":{"login":"demosdemon","id":310610,"avatar_url":"https://avatars.githubusercontent.com/u/310610?v=3","gravatar_id":"","url":"https://api.github.com/users/demosdemon","html_url":"https://github.com/demosdemon","followers_url":"https://api.github.com/users/demosdemon/followers","following_url":"https://api.github.com/users/demosdemon/following{/other_user}","gists_url":"https://api.github.com/users/demosdemon/gists{/gist_id}","starred_url":"https://api.github.com/users/demosdemon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/demosdemon/subscriptions","organizations_url":"https://api.github.com/users/demosdemon/orgs","repos_url":"https://api.github.com/users/demosdemon/repos","events_url":"https://api.github.com/users/demosdemon/events{/privacy}","received_events_url":"https://api.github.com/users/demosdemon/received_events","type":"User","site_admin":false},"created_at":"2015-03-12T19:34:56Z","updated_at":"2015-03-12T19:34:56Z","body":"I've currently moved the tput the start of my set_prompt so its echoed every time bash wants to display the prompt (which does not happen in this case), overkill but it'll stop this from happening. \r\n\r\nOther than that, in #233 I suggest making the path sourcing optional. I can't think of any other way to get the end goal of getting the path from the user's profile without the side effects of the profile echoing control characters.\r\n\r\nMy only thought is that since, in my case, I'm already providing `python_autopep8_path`, the path finding is not necessary. But that would require some legwork to accommodate every language that uses CLI.\r\n\r\nAnother thing to think about is that stdout may not be necessary, since the cmd is being called from /bin/sh, redirection works. So instead of telling CLI to get the stdout, redirect the output of autopep8 to the temporary outputFile created.\r\n"}}