Serhiy Storchaka <[email protected]> added the comment:
The code with nested wraps is awesome. But it does not work well.
>>> list(itertools.chain(*(wr(x, 5) for x in wr("123 123 1234567 12", width=5,
>>> break_long_words=False))))
['123', '123', '12345', '67', '12']
It is expected that '67' and '12' should be in the same line: '67 12'.
----------
nosy: +serhiy.storchaka
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue26214>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com