]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Add fix_sentence_endings option to control whether we ensure that
authorGreg Ward <gward@python.net>
Fri, 7 Jun 2002 21:56:16 +0000 (21:56 +0000)
committerGreg Ward <gward@python.net>
Fri, 7 Jun 2002 21:56:16 +0000 (21:56 +0000)
commit62e4f3bf224d6a3a17c04524a674caaa14270753
tree9f3bb8d87941c55308f4a435aaeb762f89c08844
parent00935824898a826f2dd6c65933667445075cdb2e
Add fix_sentence_endings option to control whether we ensure that
sentences are separated by two spaces.

Improve _fix_sentence_endings() a bit -- look for ".!?" instead of just
".", and factor out the list of sentence-ending punctuation characters
to a class attribute.
Lib/textwrap.py