Issue #29290: argparse help messages won't wrap at non-breaking spaces.

This commit is contained in:
Xiang Zhang 2017-01-22 14:37:22 +08:00
parent d7d87ca9b0
commit 7fe28ad837
3 changed files with 22 additions and 2 deletions

View file

@ -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+')
# ===============================