{"action":"created","issue":{"url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/1698","labels_url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/1698/labels{/name}","comments_url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/1698/comments","events_url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/1698/events","html_url":"https://github.com/syl20bnr/spacemacs/issues/1698","id":79676267,"number":1698,"title":"Python indenting seems to be a bit hap hazard","user":{"login":"geo7","id":8526351,"avatar_url":"https://avatars.githubusercontent.com/u/8526351?v=3","gravatar_id":"","url":"https://api.github.com/users/geo7","html_url":"https://github.com/geo7","followers_url":"https://api.github.com/users/geo7/followers","following_url":"https://api.github.com/users/geo7/following{/other_user}","gists_url":"https://api.github.com/users/geo7/gists{/gist_id}","starred_url":"https://api.github.com/users/geo7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geo7/subscriptions","organizations_url":"https://api.github.com/users/geo7/orgs","repos_url":"https://api.github.com/users/geo7/repos","events_url":"https://api.github.com/users/geo7/events{/privacy}","received_events_url":"https://api.github.com/users/geo7/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":17,"created_at":"2015-05-23T01:03:24Z","updated_at":"2015-05-23T18:21:49Z","closed_at":null,"body":"@tuhdo re the indenting thing in python\r\n\r\nIf I have this function : \r\n```python\r\ndef gcd(m,n):\r\n    while m % n != 0:\r\n        oldm = m\r\n        oldn = n\r\n\r\n        m = oldn\r\n        n = oldm%oldn\r\n    return n # note indent\r\n```\r\n\r\nand to fix formatting over the file I run `gg=G` \r\n\r\nthis will alter the function to : \r\n\r\n```python\r\ndef gcd(m,n):\r\n    while m % n != 0:\r\n        oldm = m\r\n        oldn = n\r\n\r\n        m = oldn\r\n        n = oldm%oldn\r\n        return n # note indent\r\n\r\n\r\n\r\n```\r\n\r\nThis function serves as a minimal working example (for me)\r\n\r\nIf anyone knows a better title, or whether this is expected behaviour just say :)"},"comment":{"url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/comments/104934194","html_url":"https://github.com/syl20bnr/spacemacs/issues/1698#issuecomment-104934194","issue_url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/1698","id":104934194,"user":{"login":"tuhdo","id":4818719,"avatar_url":"https://avatars.githubusercontent.com/u/4818719?v=3","gravatar_id":"","url":"https://api.github.com/users/tuhdo","html_url":"https://github.com/tuhdo","followers_url":"https://api.github.com/users/tuhdo/followers","following_url":"https://api.github.com/users/tuhdo/following{/other_user}","gists_url":"https://api.github.com/users/tuhdo/gists{/gist_id}","starred_url":"https://api.github.com/users/tuhdo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tuhdo/subscriptions","organizations_url":"https://api.github.com/users/tuhdo/orgs","repos_url":"https://api.github.com/users/tuhdo/repos","events_url":"https://api.github.com/users/tuhdo/events{/privacy}","received_events_url":"https://api.github.com/users/tuhdo/received_events","type":"User","site_admin":false},"created_at":"2015-05-23T18:21:49Z","updated_at":"2015-05-23T18:21:49Z","body":"I don't see anything unusual (and you should remove the `<f6>` key binding in `packages.el`). Could you try the following:\r\n\r\n- Assumed you are in normal mode.\r\n- `SPC h d k`.\r\n- Press the key binding that you used to insert the newline in your Python demo.\r\n\r\nI want to see which command you executed. It may give a clue."}}