This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients georg.brandl, inkerman, pitrou, roippi, serhiy.storchaka
Date 2014-11-13.10:31:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1415874704.96.0.992496586761.issue22687@psf.upfronthosting.co.za>
In-reply-to
Content
Here is a patch which is closer to current code but solves complexity issue and also fixes some bugs in current code.

$ ./python -c "import textwrap; print(textwrap.wrap('this-is-a-useful-feature', width=1, break_long_words=False))"
['this-', 'is-a', '-useful-', 'feature']
$ ./python -c "import textwrap; print(textwrap.wrap('what-d\x27you-call-it.', width=1, break_long_words=False))"
['what-d', "'you-", 'call-', 'it.']
History
Date User Action Args
2014-11-13 10:31:45serhiy.storchakasetrecipients: + serhiy.storchaka, georg.brandl, pitrou, roippi, inkerman
2014-11-13 10:31:44serhiy.storchakasetmessageid: <1415874704.96.0.992496586761.issue22687@psf.upfronthosting.co.za>
2014-11-13 10:31:44serhiy.storchakalinkissue22687 messages
2014-11-13 10:31:44serhiy.storchakacreate