diff options
Diffstat (limited to 'modules/language/python/module/textwrap.py')
-rw-r--r-- | modules/language/python/module/textwrap.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/language/python/module/textwrap.py b/modules/language/python/module/textwrap.py index 62e90ba..8c23431 100644 --- a/modules/language/python/module/textwrap.py +++ b/modules/language/python/module/textwrap.py @@ -262,7 +262,6 @@ class TextWrapper: chunks.reverse() while chunks: - # Start the list of chunks that will make up the current line. # cur_len is just the length of all the chunks in cur_line. cur_line = [] @@ -333,7 +332,6 @@ class TextWrapper: break lines.append(indent + self.placeholder.lstrip()) break - return lines def _split_chunks(self, text): @@ -352,8 +350,10 @@ class TextWrapper: converted to space. """ chunks = self._split_chunks(text) + if self.fix_sentence_endings: self._fix_sentence_endings(chunks) + return self._wrap_chunks(chunks) def fill(self, text): |