[issue1702681] Prevent textwrap from breaking words at hyphens

2008-06-03 Thread Sylvain Fourmanoit
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. --

[issue2659] textwrap handling of hyphenation

2008-04-20 Thread Sylvain Fourmanoit
Changes by Sylvain Fourmanoit <[EMAIL PROTECTED]>: Added file: http://bugs.python.org/file10068/textwrap_hyphens_doc.patch __ Tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue2659] textwrap handling of hyphenation

2008-04-20 Thread Sylvain Fourmanoit
Changes by Sylvain Fourmanoit <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file10061/textwrap_hyphens_doc.patch __ Tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue2659] textwrap handling of hyphenation

2008-04-20 Thread Sylvain Fourmanoit
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

[issue2659] textwrap handling of hyphenation

2008-04-19 Thread Sylvain Fourmanoit
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

[issue2659] textwrap handling of hyphenation

2008-04-19 Thread Sylvain Fourmanoit
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