added debug output

This commit is contained in:
Paul Gauthier 2024-06-29 08:40:18 -07:00
parent 1a455e799e
commit 2428c60456

View file

@ -95,7 +95,12 @@ class MarkdownStream:
show = lines[num_printed:num_lines] show = lines[num_printed:num_lines]
show = "".join(show) show = "".join(show)
show = Text.from_ansi(show) show = Text.from_ansi(show)
self.live.console.print(show) try:
self.live.console.print(show)
except UnicodeEncodeError as err:
print(err)
print(show)
print(repr(show))
self.printed = lines[:num_lines] self.printed = lines[:num_lines]