summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/textwrap.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/textwrap.py b/Lib/textwrap.py
index fb8d3b8..8b3a265 100644
--- a/Lib/textwrap.py
+++ b/Lib/textwrap.py
@@ -55,7 +55,7 @@ class TextWrapper:
# Hello/ /there/ /--/ /you/ /goof-/ball,/ /use/ /the/ /-b/ /option!
# (after stripping out empty strings).
wordsep_re = re.compile(r'(\s+|' # any whitespace
- r'\w{2,}-(?=\w{2,})|' # hyphenated words
+ r'-*\w{2,}-(?=\w{2,})|' # hyphenated words
r'(?<=\w)-{2,}(?=\w))') # em-dash
# XXX will there be a locale-or-charset-aware version of