Terry J. Reedy added the comment:

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.

----------
nosy: +terry.reedy
stage:  -> needs patch
versions: +Python 2.7, Python 3.4

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue23667>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to