]> git.eshelyaron.com Git - emacs.git/commit
python.el: Indent docstring lines to base-indent
authorFabián Ezequiel Gallina <fgallina@gnu.org>
Thu, 9 Apr 2015 04:41:55 +0000 (01:41 -0300)
committerFabián Ezequiel Gallina <fgallina@gnu.org>
Thu, 9 Apr 2015 04:41:55 +0000 (01:41 -0300)
commitc9415ccbf84fce152e0f4b98ac2ed60680272a47
treec80e692a8b2871eb66eedd2736259d9335ad8e14
parent911ed2eba4ad691b35e4b81bcd8b24f58b0375ca
python.el: Indent docstring lines to base-indent

Fixes: debbugs:19595
Thanks to immerrr <immerrr@gmail.com> for reporting and providing
an initial patch.

* lisp/progmodes/python.el
(python-indent-context): Add :inside-docstring context.
(python-indent--calculate-indentation): Handle :inside-docstring.
(python-indent-region): Re-indent docstrings.

* test/automated/python-tests.el (python-indent-region-5)
(python-indent-inside-string-2): Fix tests.
lisp/progmodes/python.el
test/automated/python-tests.el