py-newline-and-indent fails to clean up spurious trailing whitespace

Bug #1008679 reported by Barry Warsaw
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-mode.el
Fix Released
Medium
Andreas Roehler

Bug Description

In the code snippet, the *'s represent trailing whitespace and the X represents point:

def foo():**********X

Now hit return, i.e. py-newline-and-indent. You're indented correctly and the new line you're left on has its trailing whitespace cleaned up (though there usually probably won't be any). However, the previous line, i.e. the def foo line still contains trailing whitespace.

At one point python-mode cleaned this up properly too. I suspect that a refactoring of py-n-a-i moved the whitespace cleanup to the wrong place.

Changed in python-mode:
assignee: nobody → Andreas Roehler (a-roehler)
importance: Undecided → Medium
milestone: none → 6.0.9
Changed in python-mode:
status: New → Fix Committed
Changed in python-mode:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.