Serhiy Storchaka added the comment:

Thank you David. If splitting single letter surrounded with hyphens is 
desirable, here is more complicated patch which does this. It deviates from 
original code more, but it doesn't look break any reasonable example.

> The textwrap behaviour is underspecified so it's not ok to assume that 
> previous behaviour was obviously buggy.

Aren't ['this-', 'is-a', '-useful-', 'feature'] and ['what-d', "'you-", 
'call-', 'it.'] obvious bugs?

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue22687>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to