[issue32397] textwrap output may change if you wrap a paragraph twice

Larry Hastings report at bugs.python.org
Thu Dec 21 09:11:26 EST 2017


Larry Hastings <larry at hastings.org> added the comment:

FWIW, the test program produces this output:

------------------------------

     original: 'xxxx xxxx xxxx xxxx xxxx.  xxxx'
      wrapped: 'xxxx xxxx xxxx xxxx xxxx.\nxxxx'
wrapped twice: 'xxxx xxxx xxxx xxxx xxxx. xxxx'

Traceback (most recent call last):
  File "textwrap.isnt.stable.py", line 24, in <module>
    assert wrapped == wrapped2
AssertionError

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32397>
_______________________________________


More information about the Python-bugs-list mailing list