[issue26214] textwrap should minimize number of breaks in extra long words
Irit Katriel
report at bugs.python.org
Fri Sep 4 13:23:43 EDT 2020
Irit Katriel <iritkatriel at yahoo.com> added the comment:
One more wrap:
>>> wr(' '.join(itertools.chain(*(wr(x, 5) for x in wr("123 123 1234567 12", width=5, break_long_words=False)))), 5)
['123', '123', '12345', '67 12']
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue26214>
_______________________________________
More information about the Python-bugs-list
mailing list