summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2017-09-15 19:09:17 (GMT)
committerGitHub <noreply@github.com>2017-09-15 19:09:17 (GMT)
commit4d72945a28bc9e535a74b42eb0b40702c2f69e16 (patch)
tree62d18ea1a2022cb1ea2a8a9bb2f9f7032a7db108 /Doc/library
parent93d5f91fff5740b463980797a04f3d5f1d5f1a51 (diff)
downloadcpython-4d72945a28bc9e535a74b42eb0b40702c2f69e16.zip
cpython-4d72945a28bc9e535a74b42eb0b40702c2f69e16.tar.gz
cpython-4d72945a28bc9e535a74b42eb0b40702c2f69e16.tar.bz2
[3.6] bpo-314777: IDLE - improve rstrip entry in doc (GH-3602) (#3605)
'Strip trailing whitespace' is not limited to spaces. Wording caters to beginners who do know know the meaning of 'whitespace'. Multiline string literals are not skipped. (cherry picked from commit ff70289)
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/idle.rst4
1 files changed, 3 insertions, 1 deletions
diff --git a/Doc/library/idle.rst b/Doc/library/idle.rst
index 0faeb6d..af15359 100644
--- a/Doc/library/idle.rst
+++ b/Doc/library/idle.rst
@@ -190,7 +190,9 @@ Format Paragraph
paragraph will be formatted to less than N columns, where N defaults to 72.
Strip trailing whitespace
- Remove any space characters after the last non-space character of a line.
+ 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.
.. index::
single: Run script