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 akuchling
Recipients akuchling
Date 2008-11-14.00:37:42
SpamBayes Score 3.372166e-08
Marked as misclassified No
Message-id <1226623065.62.0.674807245437.issue4318@psf.upfronthosting.co.za>
In-reply-to
Content
(Copied from an anonymous submission 
in the Optik bug tracker.)

There have been some recent discussions on comp.lang.python about the
optparse/optik module, and Steve Bethard suggested you might be interested
in some of the work done there. I don't know if you'd find any of this
helpful for inclusion in Optik/optparse, but Steve says it's come up on
your mailing list too.

The problem at hand involves formatting help-strings so that they respect
newlines. Simply passing formatted help-strings off to the textwrap.*
methods mungs the newlines and loses them.

The original thread:
http://groups.google.com/group/comp.lang.python/browse_thread/thread/6df6e6
b541a15bc2/acf1d05cad60fc45?#acf1d05cad60fc45

My solution:
http://groups.google.com/group/comp.lang.python/msg/09f28e26af0699b1

Dan then asked about it, and took my solution and ran with it:

http://groups.google.com/group/comp.lang.python/browse_thread/thread/e72dee
e779d9989b/4ec68cd2a35d52e1?hl=en#4ec68cd2a35d52e1

Feel free to do with it as you like.
History
Date User Action Args
2008-11-14 00:37:45akuchlingsetrecipients: + akuchling
2008-11-14 00:37:45akuchlingsetmessageid: <1226623065.62.0.674807245437.issue4318@psf.upfronthosting.co.za>
2008-11-14 00:37:44akuchlinglinkissue4318 messages
2008-11-14 00:37:42akuchlingcreate