summaryrefslogtreecommitdiff
path: root/Doc/library
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2019-11-24 16:29:29 -0500
committerGitHub <noreply@github.com>2019-11-24 16:29:29 -0500
commit6bf644ec82f14cceae68278dc35bafb00875efae (patch)
tree79a913bdabfec4c9d3c30ec112f185336ce34eb0 /Doc/library
parent6f03b236c17c96bc9f8a004ffa7e7ae0542e9cac (diff)
downloadcpython-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.rst3
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