GNU bug report logs - #21583
25.0.50; Python mode uses wrong indentation in docstrings

Previous Next

Package: emacs;

Reported by: Torsten Bronger <bronger <at> physik.rwth-aachen.de>

Date: Tue, 29 Sep 2015 15:16:01 UTC

Severity: normal

Tags: moreinfo

Found in version 25.0.50

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Torsten Bronger <bronger <at> physik.rwth-aachen.de>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 21583 <at> debbugs.gnu.org
Subject: bug#21583: 25.0.50; Python mode uses wrong indentation in docstrings
Date: Wed, 9 Dec 2020 00:14:51 +0100
[Message part 1 (text/plain, inline)]
Hallöchen!

Lars Ingebrigtsen schreibt:

> Torsten Bronger <bronger <at> 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
[smime.p7s (application/pkcs7-signature, attachment)]

This bug report was last modified 4 years and 243 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.