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

Irit Katriel report at bugs.python.org
Tue Aug 3 13:06:55 EDT 2021


Irit Katriel <iritkatriel at gmail.com> added the comment:

You should be able to do them in one re, something like 

text = re.sub(r' ?\n', ' ', text)

----------
nosy: +iritkatriel

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


More information about the Python-bugs-list mailing list