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.

classification
Title: optparser help formatting nit
Type: Stage:
Components: Library (Lib) Versions: Python 2.3
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: gward Nosy List: barry, fdrake, gward
Priority: normal Keywords:

Created on 2003-11-14 16:33 by barry, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg19006 - (view) Author: Barry A. Warsaw (barry) * (Python committer) Date: 2003-11-14 16:33
When printing help from an optparse.OptParser in a
XEmacs shell buffer, the option text is wrapped one
character too wide.  I've taken to doing something like
this in my code:

parser.formatter.width -= 1
parser.formatter.help_width -= 1

which is ugly.  I think the default is to wrap to 80
characters.  It should wrap to 79 characters.
msg19007 - (view) Author: Fred Drake (fdrake) (Python committer) Date: 2004-01-26 16:43
Logged In: YES 
user_id=3066

Agreed, and fixed on the head in Lib/optparse.py revision 1.6.
History
Date User Action Args
2022-04-11 14:56:01adminsetgithub: 39551
2003-11-14 16:33:23barrycreate