[issue16623] argparse help formatter does not honor non-breaking space
Roy Smith
report at bugs.python.org
Wed Dec 5 23:03:21 CET 2012
New submission from Roy Smith:
Running this code:
---------------------------------------
import argparse
p = argparse.ArgumentParser()
p.add_argument('--foo',
help=u'This is a very long help string. ex: "--s3\u00A0s3://my.bucket/dir1/dir2"')
p.parse_args()
---------------------------------------
produces:
---------------------------------------
$ ./arg.py --help
usage: arg.py [-h] [--foo FOO]
optional arguments:
-h, --help show this help message and exit
--foo FOO This is a very long help string. ex: "--s3
s3://my.bucket/dir1/dir2"
---------------------------------------
It should not be breaking the line at a non-breaking space. I'm running:
Python 2.7.3 (default, Aug 1 2012, 05:14:39)
[GCC 4.6.3] on linux2
----------
components: Library (Lib)
messages: 177012
nosy: roysmith
priority: normal
severity: normal
status: open
title: argparse help formatter does not honor non-breaking space
type: behavior
versions: Python 2.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16623>
_______________________________________
More information about the Python-bugs-list
mailing list