]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.7] bpo-38862: IDLE Strip Trailing Whitespace fixes end newlines (GH-17366) (...
authorTerry Jan Reedy <tjreedy@udel.edu>
Wed, 27 Nov 2019 01:12:56 +0000 (20:12 -0500)
committerGitHub <noreply@github.com>
Wed, 27 Nov 2019 01:12:56 +0000 (20:12 -0500)
commit2fb971940b18bcf5a58b1b242b697d0f1d8ad7ef
tree5ce4e8f5e971ac4d80d62032a7a38b26dac0a7cb
parent2f2489310d89f589a091aa09ac1eb973d9a383d8
[3.7] bpo-38862: IDLE Strip Trailing Whitespace fixes end newlines  (GH-17366) (#17379)

Extra newlines are removed at the end of non-shell files. If the file only has newlines after stripping other trailing whitespace, all are removed, as is done by patchcheck.py.
(cherry picked from commit 6bf644ec82f14cceae68278dc35bafb00875efae)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Doc/library/idle.rst
Lib/idlelib/NEWS.txt
Lib/idlelib/format.py
Lib/idlelib/help.html
Lib/idlelib/idle_test/mock_idle.py
Lib/idlelib/idle_test/test_format.py
Misc/NEWS.d/next/IDLE/2019-11-23-21-50-57.bpo-38862.KQ9A0m.rst [new file with mode: 0644]