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 paul.j3
Recipients BreamoreBoy, GraylinKim, bethard, denilsonsa, eric.araujo, jonash, paul.j3
Date 2014-07-22.04:46:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1406004413.12.0.04362068929.issue22029@psf.upfronthosting.co.za>
In-reply-to
Content
A number of the issues seek to customize the wrapping behavior in HelpFormatter - beyond what the current Formatter subclasses offer.

http://bugs.python.org/issue13923 and http://bugs.python.org/issue12806 - want a wrapping method that preserves existing \n, while still wrapping long lines.

http://bugs.python.org/issue12806#msg144353 - suggests that this formatter is similar to CSS property white-space: pre-wrap.

http://bugs.python.org/issue9399 - wants to write a pre-formatted 'license' text using a 'version'-like Action.
 -
http://bugs.python.org/issue13023  - wants to use 2 HelpFormatter subclasses at the same time (Raw and Defaults).

http://bugs.python.org/issue13023#msg144475: "Yeah, adding a formatter instance seems overkill for the usual case of wanting to preserve formatting of the epilog."

http://bugs.python.org/issue12284 - wants to put formatted examples in the epilog.

It might be easier to handle these issues if the user could designate how an individual text block (description, epilog, help) is to be formatted.  

HTML has a '<pre>' tag, CSS has 'white-space:' attribute (with 5 styles of wrapping and white-space handling).

The usage example might be something like:

    parser = ArgumentParser(prog='PROG',
        description = NoWrap('This is a description...'),
        epilog = PreWrap('Multipoint epilog with examples...'),
        )
    parser.add_argument('-f', help='help with normal wrapping')
History
Date User Action Args
2014-07-22 04:46:53paul.j3setrecipients: + paul.j3, bethard, eric.araujo, denilsonsa, jonash, BreamoreBoy, GraylinKim
2014-07-22 04:46:53paul.j3setmessageid: <1406004413.12.0.04362068929.issue22029@psf.upfronthosting.co.za>
2014-07-22 04:46:53paul.j3linkissue22029 messages
2014-07-22 04:46:51paul.j3create