{"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":21,"created_at":"2015-05-23T01:03:24Z","updated_at":"2015-05-24T15:15:04Z","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/105024573","html_url":"https://github.com/syl20bnr/spacemacs/issues/1698#issuecomment-105024573","issue_url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/1698","id":105024573,"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},"created_at":"2015-05-24T15:15:04Z","updated_at":"2015-05-24T15:15:04Z","body":"@tuhdo @syl20bnr \r\n\r\nOh right sorry\r\n\r\n\r\n\r\n```text\r\nRET (translated from <return>) runs the command evil-ret, which is an\r\ninteractive compiled Lisp function in `evil-commands.el'.\r\n\r\nIt is bound to RET.\r\n\r\n(evil-ret &optional COUNT)\r\n\r\nMove the cursor COUNT lines down.\r\nIf point is on a widget or a button, click on it.\r\nIn Insert state, insert a newline.\r\n\r\n[back]\r\n```\r\n\r\nand : \r\n\r\n\r\n\r\n\r\n```text\r\no runs the command evil-open-below, which is an interactive compiled Lisp\r\nfunction in `evil-commands.el'.\r\n\r\nIt is bound to o.\r\n\r\n(evil-open-below COUNT)\r\n\r\nInsert a new line below point and switch to Insert state.\r\nThe insertion will be repeated COUNT times.\r\n\r\n[back]\r\n```\r\n\r\n\r\nhere are the modes :\r\n\r\n```text\r\n\r\nEnabled minor modes: Anaconda Anzu Auto-Composition Auto-Compression\r\nAuto-Encryption Clean-Aindent Column-Number Company Eldoc Electric-Indent\r\nEval-Sexp-Fu-Flash Evil Evil-Escape Evil-Jumper Evil-Leader Evil-Local\r\nEvil-Search-Highlight-Persist Evil-Surround Eyebrowse File-Name-Shadow Flx-Ido\r\nFlycheck Font-Lock Global-Anzu Global-Auto-Revert\r\nGlobal-Evil-Search-Highlight-Persist Global-Evil-Surround Global-Font-Lock\r\nGlobal-Hl-Line Global-Linum Global-Page-Break-Lines Global-Undo-Tree\r\nGlobal-Vi-Tilde-Fringe Guide-Key Helm Hi-Lock Ido-Vertical Line-Number Linum\r\nMouse-Wheel Override-Global Popwin Projectile Projectile-Global Recentf Savehist\r\nShell-Dirtrack Show-Smartparens Show-Smartparens-Global Tex-Pdf Transient-Mark\r\nUndo-Tree Vi-Tilde-Fringe Volatile-Highlights Window-Numbering Winner\r\nXterm-Mouse Yas Yas-Global\r\n```\r\n\r\n"}}