summaryrefslogtreecommitdiffstats
path: root/Lib/textwrap.py
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2008-04-25 16:59:09 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2008-04-25 16:59:09 (GMT)
commitfe536f53ea1c4541e5297cea0c9460e5259cb1d8 (patch)
tree7f3e9b2e204a2e0c6c498b4fd60d1539f97e33ab /Lib/textwrap.py
parent65134662707f270146122ffd71b4a6ac10536e4d (diff)
downloadcpython-fe536f53ea1c4541e5297cea0c9460e5259cb1d8.zip
cpython-fe536f53ea1c4541e5297cea0c9460e5259cb1d8.tar.gz
cpython-fe536f53ea1c4541e5297cea0c9460e5259cb1d8.tar.bz2
Issue 2635: fix bug in the fix_sentence_endings option to textwrap.fill.
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)