Author terry.reedy
Recipients rhettinger, terry.reedy
Date 2015-03-21.00:00:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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.
Date User Action Args
2015-03-21 00:00:48terry.reedysetrecipients: + terry.reedy, rhettinger
2015-03-21 00:00:48terry.reedysetmessageid: <>
2015-03-21 00:00:48terry.reedylinkissue23667 messages
2015-03-21 00:00:48terry.reedycreate