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 Antony.Lee
Recipients Antony.Lee
Date 2017-09-02.03:19:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1504322377.77.0.797544251654.issue31330@psf.upfronthosting.co.za>
In-reply-to
Content
The doc for argparse.RawTextHelpFormatter states that it "maintains whitespace for all sorts of help text, including argument descriptions."  But the following example (which outputs "Foo", "Bar", and "Baz", each separated by exactly one empty line) shows that paragraphs separated by more than one empty line will only be separated in the output text by a single empty line.


import argparse
parser = argparse.ArgumentParser(
    prog='PROG',
    formatter_class=argparse.RawTextHelpFormatter,
    description='''\
Foo

Bar


Baz''')
parser.print_help()
History
Date User Action Args
2017-09-02 03:19:37Antony.Leesetrecipients: + Antony.Lee
2017-09-02 03:19:37Antony.Leesetmessageid: <1504322377.77.0.797544251654.issue31330@psf.upfronthosting.co.za>
2017-09-02 03:19:37Antony.Leelinkissue31330 messages
2017-09-02 03:19:36Antony.Leecreate