This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients rhettinger, terry.reedy
Date 2015-03-21.00:00:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1426896048.84.0.136947690454.issue23667@psf.upfronthosting.co.za>
In-reply-to
Content
I agree that this area needs improvement.  'Strip trailing whitespace' should strip trailing blank lines at the end of a file, as well as trailing blank spaces at the end of each line.  Both are required to commit to our repository.

I would like to have a configuration option to always strip trailing blanks, at least for .py files.

I believe the cursor moving from one line to another is an event that is or could be caugth and acted on. If so, trailing spaces could be removed immediately from the line left, and Save would only have to check the current line and the end of the file.  I would rather remove blanks than mark them for later removal.
History
Date User Action Args
2015-03-21 00:00:48terry.reedysetrecipients: + terry.reedy, rhettinger
2015-03-21 00:00:48terry.reedysetmessageid: <1426896048.84.0.136947690454.issue23667@psf.upfronthosting.co.za>
2015-03-21 00:00:48terry.reedylinkissue23667 messages
2015-03-21 00:00:48terry.reedycreate