Not endline for cout_wrap when there is only one line
@@ -23,10 +23,14 @@ sharpy_license = \
Copyright (c), Imperial College London.
All rights reserved. '''
-
wrapper = textwrap.TextWrapper(width=output_columns, break_long_words=False)
+
+
def cout_wrap(line):
lines = line.split("\n")
+ if len(lines) == 1:
+ print(line)
+ else:
newline = ''
for line in lines:
if len(line) > output_columns:
