bug-gnu-emacs
[Top][All Lists]
Advanced

[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: Torsten Bronger
Subject: bug#21583: 25.0.50; Python mode uses wrong indentation in docstrings
Date: Wed, 9 Dec 2020 00:14:51 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Hallöchen!

Lars Ingebrigtsen schreibt:

> 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.
>
> [...]
>
> 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?

No, I cannot reproduce this anymore with current Emacs.

Regards,
Torsten.

-- 
Torsten Bronger

Attachment: smime.p7s
Description: S/MIME cryptographic signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]