Skip to content

Commit ff70289

Browse files
authored
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.
1 parent 992f613 commit ff70289

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

Doc/library/idle.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,9 @@ Format Paragraph
190190
paragraph will be formatted to less than N columns, where N defaults to 72.
191191

192192
Strip trailing whitespace
193-
Remove any space characters after the last non-space character of a line.
193+
Remove trailing space and other whitespace characters after the last
194+
non-whitespace character of a line by applying str.rstrip to each line,
195+
including lines within multiline strings.
194196

195197
.. index::
196198
single: Run script

Lib/idlelib/help.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,9 @@ <h3>25.5.1.3. Format menu (Editor window only)<a class="headerlink" href="#forma
227227
multiline string or selected line in a string. All lines in the
228228
paragraph will be formatted to less than N columns, where N defaults to 72.</dd>
229229
<dt>Strip trailing whitespace</dt>
230-
<dd>Remove any space characters after the last non-space character of a line.</dd>
230+
<dd>Remove trailing space and other whitespace characters after the last
231+
non-whitespace character of a line by applying str.rstrip to each line,
232+
including lines within multiline strings.</dd>
231233
</dl>
232234
</div>
233235
<div class="section" id="run-menu-editor-window-only">
@@ -779,7 +781,7 @@ <h3>Navigation</h3>
779781
The Python Software Foundation is a non-profit corporation.
780782
<a href="https://www.python.org/psf/donations/">Please donate.</a>
781783
<br />
782-
Last updated on Sep 12, 2017.
784+
Last updated on Sep 15, 2017.
783785
<a href="../bugs.html">Found a bug</a>?
784786
<br />
785787
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.3.6.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
IDLE - Improve rstrip entry in doc. Strip trailing whitespace strips more
2+
than blank spaces. Multiline string literals are not skipped.

0 commit comments

Comments
 (0)