Commit 9697bbc8 authored by Greg Ward's avatar Greg Ward

Make all of TextWrapper's options keyword args to the constructor.

parent 235652ae
...@@ -60,11 +60,15 @@ class TextWrapper: ...@@ -60,11 +60,15 @@ class TextWrapper:
% string.lowercase) % string.lowercase)
def __init__ (self): def __init__ (self,
self.expand_tabs = True expand_tabs=True,
self.replace_whitespace = True replace_whitespace=True,
self.fix_sentence_endings = False fix_sentence_endings=False,
self.break_long_words = True break_long_words=True):
self.expand_tabs = expand_tabs
self.replace_whitespace = replace_whitespace
self.fix_sentence_endings = fix_sentence_endings
self.break_long_words = break_long_words
# -- Private methods ----------------------------------------------- # -- Private methods -----------------------------------------------
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment