[Python-mode] [ python-mode-Bugs-1240558 ] comment badly affects following line indentation

SourceForge.net noreply at sourceforge.net
Tue Jul 19 00:27:59 CEST 2005


Bugs item #1240558, was opened at 2005-07-18 17:27
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=581349&aid=1240558&group_id=86916

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Mike Coleman (mkc)
Assigned to: Nobody/Anonymous (nobody)
Summary: comment badly affects following line indentation

Initial Comment:
In code like this:

def foo():
    x = 1
# indentation is wrong after this comment
y = 1

the 'y = 1' line is not properly indented.  (Hitting
tab in this line does not fix it either.)

It seems like the indentation engine should ignore
comments.

(In case this form messes up whitespace, the 'x = 1'
line is indented and the others are not.)

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=581349&aid=1240558&group_id=86916


More information about the Python-mode mailing list