diff options
author | Tim Peters <tim.peters@gmail.com> | 2002-07-16 21:35:23 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2002-07-16 21:35:23 (GMT) |
commit | c411dbaeee29dba87d5432a92fe76ea65d8e25f0 (patch) | |
tree | 45b71b45b9b5c2f2ddc1b644166208cd041f076c /Lib/textwrap.py | |
parent | 8531b1b28de5356f1154e13704d499121ea72af8 (diff) | |
download | cpython-c411dbaeee29dba87d5432a92fe76ea65d8e25f0.zip cpython-c411dbaeee29dba87d5432a92fe76ea65d8e25f0.tar.gz cpython-c411dbaeee29dba87d5432a92fe76ea65d8e25f0.tar.bz2 |
Whitespace normalization.
Diffstat (limited to 'Lib/textwrap.py')
-rw-r--r-- | Lib/textwrap.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/textwrap.py b/Lib/textwrap.py index e8f9add..fb8d3b8 100644 --- a/Lib/textwrap.py +++ b/Lib/textwrap.py @@ -48,7 +48,7 @@ class TextWrapper: whitespace_trans = string.maketrans(string.whitespace, ' ' * len(string.whitespace)) - # This funky little regex is just the trick for splitting + # This funky little regex is just the trick for splitting # text up into word-wrappable chunks. E.g. # "Hello there -- you goof-ball, use the -b option!" # splits into @@ -81,7 +81,7 @@ class TextWrapper: self.replace_whitespace = replace_whitespace self.fix_sentence_endings = fix_sentence_endings self.break_long_words = break_long_words - + # -- Private methods ----------------------------------------------- # (possibly useful for subclasses to override) @@ -209,7 +209,7 @@ class TextWrapper: break # The current line is full, and the next chunk is too big to - # fit on *any* line (not just this one). + # fit on *any* line (not just this one). if chunks and len(chunks[0]) > width: self._handle_long_word(chunks, cur_line, cur_len, width) |