]> granicus.if.org Git - python/commitdiff
[3.6] bpo-31330: Clarify that RawTextHelpFormatter collapses repeated newlines. ...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 7 Sep 2017 21:18:45 +0000 (14:18 -0700)
committerR. David Murray <rdmurray@bitdance.com>
Thu, 7 Sep 2017 21:18:45 +0000 (17:18 -0400)
Also provide a solution if the user wants to keep multiple blank lines.
(cherry picked from commit 397c467c49385023de36411194d381ac993bae1a)

Doc/library/argparse.rst

index 45303048174dfabf5437b26da90f415d5af1cc33..9411bbd4ac586471e2d11bf914d93d4942b0611b 100644 (file)
@@ -426,7 +426,9 @@ should not be line-wrapped::
     -h, --help  show this help message and exit
 
 :class:`RawTextHelpFormatter` maintains whitespace for all sorts of help text,
-including argument descriptions.
+including argument descriptions. However, multiple new lines are replaced with
+one. If you wish to preserve multiple blank lines, add spaces between the
+newlines.
 
 :class:`ArgumentDefaultsHelpFormatter` automatically adds information about
 default values to each of the argument help messages::