Drop whitespace when possible.

This commit is contained in:
Florian Bruhin 2014-02-27 22:34:08 +01:00
parent 3ce1388137
commit 8d726cb49e

View File

@ -62,7 +62,6 @@ class NewConfig:
'replace_whitespace': False, 'replace_whitespace': False,
'break_long_words': False, 'break_long_words': False,
'break_on_hyphens': False, 'break_on_hyphens': False,
'drop_whitespace': False,
} }
print(str(self)) print(str(self))
@ -129,6 +128,7 @@ class NewConfig:
def _str_items(self, section): def _str_items(self, section):
keyval_wrapper = textwrap.TextWrapper(initial_indent='', keyval_wrapper = textwrap.TextWrapper(initial_indent='',
subsequent_indent=' ' * 4, subsequent_indent=' ' * 4,
drop_whitespace = False,
**self._wrapper_args) **self._wrapper_args)
lines = [] lines = []
for optname, option in section.items(): for optname, option in section.items():