[issue1859] textwrap doesn't linebreak on "\n"

Chris Jerdonek report at bugs.python.org
Sun Jul 29 21:58:42 CEST 2012


Chris Jerdonek added the comment:

In working on the patch for this issue, I also noticed that there is a minor error in the documentation of the replace_whitespace attribute.

The docs say that string.whitespace is used, but the code uses a hard-coded string and includes a comment explaining why string.whitespace should *not* be used.

http://hg.python.org/cpython/file/1102e86b8739/Lib/textwrap.py#l30

I will correct this in the patch, but if people think so, I could file it as a separate issue.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1859>
_______________________________________


More information about the Python-bugs-list mailing list