Subject: bug#21583: 25.0.50; Python mode uses wrong indentation in docstrings

From: Lars Ingebrigtsen <[email-masked]>
Date: Thu, 03 Dec 2020 11:57:01 +0100

Torsten Bronger <[email-masked]> 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