[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#21583: 25.0.50; Python mode uses wrong indentation in docstrings
From: |
Lars Ingebrigtsen |
Subject: |
bug#21583: 25.0.50; Python mode uses wrong indentation in docstrings |
Date: |
Thu, 03 Dec 2020 11:57:01 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Torsten Bronger <bronger@physik.rwth-aachen.de> writes:
> When using python-mode and auto-fill-mode and writing docstrings for
> Python methods, a function/method decorator confuses python-mode so that
> it uses a too small indentation for a new line. Have a look at this
> example:
>
> class A:
>
> @property
> def a(self):
> """This is property a. blah blah blah blah blah blah blah blah blah
> blah blah blah blah blah blah blah blah blah blah
>
> """
>
> If the "@property" line is removed, the second line in the docstring is
> properly indented.
(This bug report unfortunately got no response at the time.)
I tried reproducing this in Emacs 26.1 and Emacs 28, and it seems to
work fine for me there. Are you still seeing this problem?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
- bug#21583: 25.0.50; Python mode uses wrong indentation in docstrings,
Lars Ingebrigtsen <=