summaryrefslogtreecommitdiffstats
path: root/Lib
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 /Lib
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 'Lib')
-rw-r--r--Lib/idlelib/help.html6
1 files changed, 4 insertions, 2 deletions
diff --git a/Lib/idlelib/help.html b/Lib/idlelib/help.html
index 9005157..33ae884 100644
--- a/Lib/idlelib/help.html
+++ b/Lib/idlelib/help.html
@@ -227,7 +227,9 @@ community is 4 spaces.</dd>
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.</dd>
<dt>Strip trailing whitespace</dt>
-<dd>Remove any space characters after the last non-space character of a line.</dd>
+<dd>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.</dd>
</dl>
</div>
<div class="section" id="run-menu-editor-window-only">
@@ -779,7 +781,7 @@ also used for testing.</p>
The Python Software Foundation is a non-profit corporation.
<a href="https://www.python.org/psf/donations/">Please donate.</a>
<br />
- Last updated on Sep 12, 2017.
+ Last updated on Sep 15, 2017.
<a href="../bugs.html">Found a bug</a>?
<br />
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.3.6.