2014-06-19 18:23:53 |
Marcin |
description |
According to PEP-8, "[c]ontinuation lines should align wrapped elements either vertically using Python's implicit line joining inside parentheses, brackets and braces, or using a hanging indent". py-newline-and-indent does the job of aligning the next line with the opening parenthesis fine. However, when TAB is then pressed, this position is lost and multiples of py-python-offset are used instead. At the same, running M-x indent-for-tab-command or indent-according-to-mode fixes the problem. |
According to PEP-8, "[c]ontinuation lines should align wrapped elements either vertically using Python's implicit line joining inside parentheses, brackets and braces, or using a hanging indent". py-newline-and-indent does the job of aligning the next line with the opening parenthesis fine. However, when TAB is then pressed, this position is lost and multiples of py-python-offset are used instead. At the same, running M-x indent-for-tab-command or indent-according-to-mode fixes the problem.
This is with python-mode 6.1.3 and Emacs 24.3.1. |
|