Stop deleting blank space in errors

This commit is contained in:
John Doty 2024-06-02 08:09:32 -07:00
parent f1507a36f1
commit d6131ad53e

View file

@ -390,7 +390,7 @@ class Harness:
for line in lines[: rows - 3]:
print(line[:cols] + "\r")
else:
wrapper = textwrap.TextWrapper(width=cols)
wrapper = textwrap.TextWrapper(width=cols, drop_whitespace=False)
lines = [line for error in self.errors for line in wrapper.wrap(error)]
for line in lines[: rows - 3]:
print(line + "\r")