[New-bugs-announce] [issue31330] argparse.RawTextHelpFormatter does not maintain lines separated by more than one newline
Antony Lee
report at bugs.python.org
Fri Sep 1 23:19:37 EDT 2017
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 <report at bugs.python.org>
<http://bugs.python.org/issue31330>
_______________________________________
More information about the New-bugs-announce
mailing list