Issue 2635: fix bug in the fix_sentence_endings option to textwrap.fill.

This commit is contained in:
Mark Dickinson 2008-04-25 16:59:09 +00:00
parent 6513466270
commit fe536f53ea
3 changed files with 9 additions and 0 deletions

View file

@ -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)