diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2019-11-27 01:13:23 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-27 01:13:23 (GMT) |
commit | a9c86f5e1afa2487524b1947153953b583714d62 (patch) | |
tree | bb96a139f6711cd0b24037fc9ee0b1a013352844 /Misc | |
parent | 191f94cca6f8cf59535e7459c1113e4a1cdfe201 (diff) | |
download | cpython-a9c86f5e1afa2487524b1947153953b583714d62.zip cpython-a9c86f5e1afa2487524b1947153953b583714d62.tar.gz cpython-a9c86f5e1afa2487524b1947153953b583714d62.tar.bz2 |
[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>
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/IDLE/2019-11-23-21-50-57.bpo-38862.KQ9A0m.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/IDLE/2019-11-23-21-50-57.bpo-38862.KQ9A0m.rst b/Misc/NEWS.d/next/IDLE/2019-11-23-21-50-57.bpo-38862.KQ9A0m.rst new file mode 100644 index 0000000..14bab9e --- /dev/null +++ b/Misc/NEWS.d/next/IDLE/2019-11-23-21-50-57.bpo-38862.KQ9A0m.rst @@ -0,0 +1,2 @@ +'Strip Trailing Whitespace' on the Format menu removes extra newlines +at the end of non-shell files. |