summaryrefslogtreecommitdiffstats
path: root/Lib/textwrap.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/textwrap.py')
-rw-r--r--Lib/textwrap.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/textwrap.py b/Lib/textwrap.py
index 473b98a..ffbb9d1 100644
--- a/Lib/textwrap.py
+++ b/Lib/textwrap.py
@@ -90,6 +90,7 @@ class TextWrapper:
sentence_end_re = re.compile(r'[%s]' # lowercase letter
r'[\.\!\?]' # sentence-ending punct.
r'[\"\']?' # optional end-of-quote
+ r'\Z' # end of chunk
% string.lowercase)