Author terry.reedy
Recipients bup, terry.reedy
Date 2017-09-15.16:40:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
The current behavior of IDLE's feature is standard, not a bug.  The cpython respository does not currently accept .py, .c, or .rst files with any trailing whitespace.  <pythondir>/tools/scripts/ strips trailing whitespace from all lines.  Notepad++, a widely used multi-language Windows programmer's editor, does the same.

I am aware of the potential surprise.  If one wants multiline strings with embedded trailing whitespace, one should avoid trailing whitespace strippers or use Python's string concatenation feature. 
>>> s = ('space \n' 'tab\t\n' 'line3\n')
>>> s
'space \ntab\t\nline3\n'

I am revising the doc to make the rstring behavior clearer.
Date User Action Args
2017-09-15 16:40:33terry.reedysetrecipients: + terry.reedy, bup
2017-09-15 16:40:33terry.reedysetmessageid: <>
2017-09-15 16:40:33terry.reedylinkissue31477 messages
2017-09-15 16:40:33terry.reedycreate