GNU bug report logs - #15731
24.3; python indentation error: wrong indentation after inline if-statement

Previous Next

Package: emacs;

Reported by: Luke Zoltan Kelley <lkelley <at> cfa.harvard.edu>

Date: Sun, 27 Oct 2013 06:12:02 UTC

Severity: normal

Found in version 24.3

Done: fgallina <at> gnu.org (Fabián Ezequiel Gallina)

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
To: 15731 <at> debbugs.gnu.org
Subject: bug#15731: 24.3; python indentation error: wrong indentation after inline if-statement
Date: Sun, 27 Oct 2013 09:50:25 +0100
Am 27.10.2013 03:23, schrieb Luke Zoltan Kelley:
> emacs -Q test.py
>
> cond = True
> if( cond ):
>
>      if( cond ): print "True"
> else: print "False"
>
> else:
>      return
>
> the first 'else' condition will not indent to the proper alignment
> (aligned with the second 'if' statement).  Using M-x indent-region has
> the same effect.  It's possible this bug does not occur in 24.2.1.
>


May confirm this with

GNU Emacs 24.3.50.1 (i686-pc-linux-gnu, GTK+ Version 2.24.10) of 2013-10-21






This bug report was last modified 11 years and 163 days ago.

Previous Next


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