Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6edb37 commit e3bd104Copy full SHA for e3bd104
1 file changed
Lib/textwrap.py
@@ -56,7 +56,7 @@ class TextWrapper:
56
# (after stripping out empty strings).
57
wordsep_re = re.compile(r'(\s+|' # any whitespace
58
r'-*\w{2,}-(?=\w{2,})|' # hyphenated words
59
- r'(?<=\w)-{2,}(?=\w))') # em-dash
+ r'(?<=\S)-{2,}(?=\S))') # em-dash
60
61
# XXX will there be a locale-or-charset-aware version of
62
# string.lowercase in 2.3?
0 commit comments