[issue33046] IDLE option to strip trailing whitespace automatically on save

2019-11-19 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

I want to add EOF newline stripping before making this automatic.  Otherwise, 
the new feature will give people a false sense that it is all taken care of.  I 
opened #38862 and hope to do it tomorrow.

I may then merge Zackary's PR with any still edits of existing code,  and make 
fixing the General tab and its Help page a new PR.

I am thinking to make the per file option toggle, under Options, analogous to 
Add/Hide Linenumbers, be 'Fix/Leave Whitespace' + 'on Save' if it does not make 
box too wide.

--
dependencies: +IDLE: Include end newlines in whitespace fix.
versions: +Python 3.7, Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue33046] IDLE option to strip trailing whitespace automatically on save

2019-11-16 Thread Zackery Spytz


Zackery Spytz  added the comment:

I have created a pull request to implement this feature.  There was also some 
relevant discussion in bpo-23667.

--
nosy: +ZackerySpytz

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue33046] IDLE option to strip trailing whitespace automatically on save

2019-11-16 Thread Zackery Spytz


Change by Zackery Spytz :


--
keywords: +patch
pull_requests: +16705
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/17201

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue33046] IDLE option to strip trailing whitespace automatically on save

2018-03-10 Thread Raymond Hettinger

New submission from Raymond Hettinger :

Add option to IDLE preferences in the general section to automatically run 
Strip Trailing Whitespace before saving.

People who use Strip Trailing Whitespace generally do so just before saving and 
they do it over and over again as they develop and check in code.  It would be 
nice to have this done automatically.  In general, trailing whitespace is 
almost never desireable.

--
assignee: terry.reedy
components: IDLE
messages: 313580
nosy: rhettinger, terry.reedy
priority: normal
severity: normal
status: open
title: IDLE option to strip trailing whitespace automatically on save
type: enhancement
versions: Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com