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-12.08:34:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <3191135.2MNFfpqdv0@raxxla>
In-reply-to <1415738894.79.0.885303960776.issue22687@psf.upfronthosting.co.za>
Content
Current regex produces insane result.

$ ./python -c "import textwrap; print(textwrap.wrap('this-is-a-useful-feature', width=1, break_long_words=False))"
['this-', 'is-a', '-useful-', 'feature']

Antoine's regex produces more correct result for this case: ['this-', 'is-', 'a-', 'useful-', 'feature']. But this is not totally correct, one-letter word should not be separated. This can be easy fixed.
History
Date User Action Args
2014-11-12 08:34:22serhiy.storchakasetrecipients: + serhiy.storchaka, georg.brandl, pitrou, roippi, inkerman
2014-11-12 08:34:21serhiy.storchakalinkissue22687 messages
2014-11-12 08:34:21serhiy.storchakacreate