diff --git a/clint/textui/core.py b/clint/textui/core.py index 780fc9e..21a724d 100644 --- a/clint/textui/core.py +++ b/clint/textui/core.py @@ -57,6 +57,12 @@ class Writer(object): def __call__(self, s, newline=True, stream=STDOUT): + + if newline: + s = s.split('\n') + indent = ''.join(self.shared['indent_strings']) + s = (indent + '\n').join(s) + _str = ''.join(( ''.join(self.shared['indent_strings']), str(s),