mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #29290: argparse help messages won't wrap at non-breaking spaces.
This commit is contained in:
parent
d7d87ca9b0
commit
7fe28ad837
3 changed files with 22 additions and 2 deletions
|
@ -176,7 +176,7 @@ class HelpFormatter(object):
|
|||
self._root_section = self._Section(self, None)
|
||||
self._current_section = self._root_section
|
||||
|
||||
self._whitespace_matcher = _re.compile(r'\s+')
|
||||
self._whitespace_matcher = _re.compile(r'\s+', _re.ASCII)
|
||||
self._long_break_matcher = _re.compile(r'\n\n\n+')
|
||||
|
||||
# ===============================
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue