[Python-bugs-list] [ python-Bugs-596434 ] textwrap has problems wrapping hyphens
noreply@sourceforge.net
noreply@sourceforge.net
Thu, 22 Aug 2002 14:04:54 -0700
Bugs item #596434, was opened at 2002-08-17 10:46
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=596434&group_id=5470
Category: Python Library
Group: Python 2.3
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: David Goodger (goodger)
Assigned to: Greg Ward (gward)
Summary: textwrap has problems wrapping hyphens
Initial Comment:
(Greg already knows about this from private mail;
this makes it "official".)
Long multi-word command-line options (begin
with "--" and contain internal "-") inside text may be
wrapped badly by textwrap. For example, "--an-
option" may become "--\nan-option" or "--an-\
noption". Perhaps words that begin with hyphens
should not be wrapped at all?
----------------------------------------------------------------------
>Comment By: Greg Ward (gward)
Date: 2002-08-22 17:04
Message:
Logged In: YES
user_id=14422
Thanks for the reminder, David!
Fixed in Lib/textwrap.py rev 1.14.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=596434&group_id=5470