PyDocs

Nav

Text Processing Services

TextWrapper.fix_sentence_endings

textwrap

attribute of TextWrapper
(default: False) If true, TextWrapper attempts to detect sentence endings and ensure that sentences are always separated by exactly two spaces. This is generally desired for text in a monospaced font. However, the sentence detection algorithm is imperfect: it assumes that a sentence ending consists of a lowercase letter followed by one of '.', '!', or '?', possibly followed by one of '"' or "'", followed by a space. One problem with this algorithm is that it is unable to detect the difference between “Dr.” in
0 Examples
No examples for textwrap/TextWrapper.fix_sentence_endings.
See Also
No see-alsos for textwrap/TextWrapper.fix_sentence_endings
0 Notes
No notes for TextWrapper.fix_sentence_endings