New submission from Antony Lee:

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()

----------
components: Library (Lib)
messages: 301158
nosy: Antony.Lee
priority: normal
severity: normal
status: open
title: argparse.RawTextHelpFormatter does not maintain lines separated by more 
than one newline
versions: Python 3.6

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue31330>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to