[issue31330] argparse.RawTextHelpFormatter does not maintain lines separated by more than one newline

2017-09-07 Thread R. David Murray
Changes by R. David Murray : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list ma

[issue31330] argparse.RawTextHelpFormatter does not maintain lines separated by more than one newline

2017-09-07 Thread R. David Murray
R. David Murray added the comment: New changeset e89b35dd2b87e85978b91e3e2dbdea1fc76d6be4 by R. David Murray (Miss Islington (bot)) in branch '3.6': [3.6] bpo-31330: Clarify that RawTextHelpFormatter collapses repeated newlines. (GH-3272) (GH-3429) https://github.com/python/cpython/commit/e89b

[issue31330] argparse.RawTextHelpFormatter does not maintain lines separated by more than one newline

2017-09-07 Thread R. David Murray
R. David Murray added the comment: New changeset 82cae7c5be4175e2173e4d342825b5315a9d612a by R. David Murray (Miss Islington (bot)) in branch '2.7': [2.7] bpo-31330: Clarify that RawTextHelpFormatter collapses repeated newlines. (GH-3272) (GH-3428) https://github.com/python/cpython/commit/82ca

[issue31330] argparse.RawTextHelpFormatter does not maintain lines separated by more than one newline

2017-09-07 Thread Roundup Robot
Changes by Roundup Robot : -- keywords: +patch pull_requests: +3426 stage: backport needed -> patch review ___ Python tracker ___ ___

[issue31330] argparse.RawTextHelpFormatter does not maintain lines separated by more than one newline

2017-09-07 Thread R. David Murray
R. David Murray added the comment: Thanks, Elena. -- resolution: -> fixed stage: -> backport needed ___ Python tracker ___ ___ Pyth

[issue31330] argparse.RawTextHelpFormatter does not maintain lines separated by more than one newline

2017-09-07 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +3425 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue31330] argparse.RawTextHelpFormatter does not maintain lines separated by more than one newline

2017-09-07 Thread R. David Murray
R. David Murray added the comment: New changeset 397c467c49385023de36411194d381ac993bae1a by R. David Murray (Elena Oat) in branch 'master': bpo-31330: Clarify that RawTextHelpFormatter collapses repeated newlines. (#3272) https://github.com/python/cpython/commit/397c467c49385023de36411194d381

[issue31330] argparse.RawTextHelpFormatter does not maintain lines separated by more than one newline

2017-09-06 Thread Elena Oat
Elena Oat added the comment: I've created a pull request. Could someone review it please? -- ___ Python tracker ___ ___ Python-bugs-li

[issue31330] argparse.RawTextHelpFormatter does not maintain lines separated by more than one newline

2017-09-03 Thread Elena Oat
Changes by Elena Oat : -- pull_requests: +3316 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue31330] argparse.RawTextHelpFormatter does not maintain lines separated by more than one newline

2017-09-02 Thread paul j3
paul j3 added the comment: http://bugs.python.org/issue17113 argparse.RawDescriptionHelpFormatter should not delete blank lines This provides more details on why this is happening. I suggest using adding a space between newlines, thus: '\n \n'. HelpFormatter.format_help is just looking for '\

[issue31330] argparse.RawTextHelpFormatter does not maintain lines separated by more than one newline

2017-09-02 Thread paul j3
paul j3 added the comment: I've seen this before, either in another bug/issue or a Stackoverflow question. The basic change in RawTextHelpFormatter is to turn off the line wrapping for texts like the description. Multiple newlines are preserved at this step. But after assembling all the piece

[issue31330] argparse.RawTextHelpFormatter does not maintain lines separated by more than one newline

2017-09-02 Thread R. David Murray
R. David Murray added the comment: If that is the intended definition of "whitespace" in this context (I have no opinion on that so far), then the docs need amplification, because in general "whitespace" includes newlines. On the other hand, this might be considered a bug in the code and not

[issue31330] argparse.RawTextHelpFormatter does not maintain lines separated by more than one newline

2017-09-02 Thread Elena Oat
Elena Oat added the comment: It maintains *whitespace*, not the new lines. I've tested this using whitespaces and I think it keeps them according to the original description. See the image attached. -- nosy: +Elena.Oat Added file: http://bugs.python.org/file47117/Screen Shot 2017-09-02

[issue31330] argparse.RawTextHelpFormatter does not maintain lines separated by more than one newline

2017-09-01 Thread Antony Lee
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 p