diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2017-09-15 17:05:28 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-15 17:05:28 (GMT) |
commit | ff702890027f404dbf5faab6730d1169b3251f66 (patch) | |
tree | 85e31ffff95ad56c03c1cedb3aa4c4d7ed2f7b23 /Doc | |
parent | 992f613fe6611f4a3e614a219d0ccb76bc4906d6 (diff) | |
download | cpython-ff702890027f404dbf5faab6730d1169b3251f66.zip cpython-ff702890027f404dbf5faab6730d1169b3251f66.tar.gz cpython-ff702890027f404dbf5faab6730d1169b3251f66.tar.bz2 |
bpo-314777: IDLE - improve rstrip entry in doc (#3602)
'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.
* News blurb.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/idle.rst | 4 |
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 |