diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2019-11-24 16:29:29 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-24 16:29:29 -0500 |
commit | 6bf644ec82f14cceae68278dc35bafb00875efae (patch) | |
tree | 79a913bdabfec4c9d3c30ec112f185336ce34eb0 /Doc/library | |
parent | 6f03b236c17c96bc9f8a004ffa7e7ae0542e9cac (diff) | |
download | cpython-git-6bf644ec82f14cceae68278dc35bafb00875efae.tar.gz |
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.
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/idle.rst | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/library/idle.rst b/Doc/library/idle.rst index 0bd248c22b..273b5830e4 100644 --- a/Doc/library/idle.rst +++ b/Doc/library/idle.rst @@ -199,7 +199,8 @@ Format Paragraph Strip trailing whitespace Remove trailing space and other whitespace characters after the last non-whitespace character of a line by applying str.rstrip to each line, - including lines within multiline strings. + including lines within multiline strings. Except for Shell windows, + remove extra newlines at the end of the file. .. index:: single: Run script |