]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.8] bpo-38862: IDLE Strip Trailing Whitespace fixes end newlines (GH-17366)
authorTerry Jan Reedy <tjreedy@udel.edu>
Wed, 27 Nov 2019 01:13:23 +0000 (20:13 -0500)
committerGitHub <noreply@github.com>
Wed, 27 Nov 2019 01:13:23 +0000 (20:13 -0500)
commita9c86f5e1afa2487524b1947153953b583714d62
treebb96a139f6711cd0b24037fc9ee0b1a013352844
parent191f94cca6f8cf59535e7459c1113e4a1cdfe201
[3.8] bpo-38862: IDLE Strip Trailing Whitespace fixes end newlines  (GH-17366)

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]