diff --git a/Doc/library/idle.rst b/Doc/library/idle.rst index 0faeb6df934..af153593e3c 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 9005157dd98..33ae8842055 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.