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: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Torsten Bronger <bronger <at> physik.rwth-aachen.de>
Cc: 21583 <at> debbugs.gnu.org
Subject: bug#21583: 25.0.50; Python mode uses wrong indentation in docstrings
Date: Thu, 03 Dec 2020 11:57:01 +0100
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.

(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




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.