From: Terry Jan Reedy Date: Fri, 15 Sep 2017 19:09:17 +0000 (-0400) Subject: [3.6] bpo-314777: IDLE - improve rstrip entry in doc (GH-3602) (#3605) X-Git-Tag: v3.6.3rc1~12 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4d72945a28bc9e535a74b42eb0b40702c2f69e16;p=python [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) --- diff --git a/Doc/library/idle.rst b/Doc/library/idle.rst index 0faeb6df93..af153593e3 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 diff --git a/Lib/idlelib/help.html b/Lib/idlelib/help.html index 9005157dd9..33ae884205 100644 --- a/Lib/idlelib/help.html +++ b/Lib/idlelib/help.html @@ -227,7 +227,9 @@ community is 4 spaces. multiline string or selected line in a string. All lines in the 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.
@@ -779,7 +781,7 @@ also used for testing.

The Python Software Foundation is a non-profit corporation. Please donate.
- Last updated on Sep 12, 2017. + Last updated on Sep 15, 2017. Found a bug?
Created using Sphinx 1.3.6. diff --git a/Misc/NEWS.d/next/IDLE/2017-09-15-12-38-47.bpo-31477.n__6sa.rst b/Misc/NEWS.d/next/IDLE/2017-09-15-12-38-47.bpo-31477.n__6sa.rst new file mode 100644 index 0000000000..4b47ed3f53 --- /dev/null +++ b/Misc/NEWS.d/next/IDLE/2017-09-15-12-38-47.bpo-31477.n__6sa.rst @@ -0,0 +1,2 @@ +IDLE - Improve rstrip entry in doc. Strip trailing whitespace strips more +than blank spaces. Multiline string literals are not skipped.