Sylvain Fourmanoit <[EMAIL PROTECTED]> added the comment:
> That being said, I'm +1 on adding a keyword argument treating hyphens
> as non-breaking
It's now in Python 2.6: http://bugs.python.org/issue2659
This issue should probably be closed.
--
Changes by Sylvain Fourmanoit <[EMAIL PROTECTED]>:
Added file: http://bugs.python.org/file10068/textwrap_hyphens_doc.patch
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.pytho
Changes by Sylvain Fourmanoit <[EMAIL PROTECTED]>:
Removed file: http://bugs.python.org/file10061/textwrap_hyphens_doc.patch
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.pytho
Sylvain Fourmanoit <[EMAIL PROTECTED]> added the comment:
Thanks for the feedback. Enclosed patch:
- moves the added "break_on_hyphens" argument at the end of the argument
list
- adds a unit test for the new attribute
Added file: http://bugs.python.org/file10067/textwrap_br
Sylvain Fourmanoit <[EMAIL PROTECTED]> added the comment:
I also think it would be nice if a public interface to completely avoid
breaking hyphenated words would be included; patch included: it's pretty
light, and should have no impact on any code currently using textwrap.
Added
New submission from Sylvain Fourmanoit <[EMAIL PROTECTED]>:
The textwrap module in standard library breaks hyphenated words given
the opportunity; I don't think that's absolutely obvious from the
current doc, and it's something worth mentioning.
Here is a short ad