[issue23667] IDLE to provide option for making trailing whitespace visible

Terry J. Reedy report at bugs.python.org
Sat Mar 21 01:00:48 CET 2015


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 <report at bugs.python.org>
<http://bugs.python.org/issue23667>
_______________________________________


More information about the Python-bugs-list mailing list