gh-77227: An IDLE option to strip trailing whitespace on save by ZackerySpytz · Pull Request #17201 · python/cpython (original) (raw)

rstrip-on-save might be sufficient.

Except for line-numbers, the other existing items are actually for the base class used for editor, shell, and output windows. This has to be for editor windows only, at least at present. PyShell subclasses code.Interactive Interpreter, which already does some stripping before compiling. And user code output should not be touched. This different between items should somehow be more obvious on the configdialog tab. I am thinking about what to do.

If someone want to disable this, doing so for particular windows makes more sense than globally. Could we get away with having only a window option, or are there really people who would never want