style: Fix whitespace and formatting in mdstream.py

This commit is contained in:
Paul Gauthier (aider) 2025-01-07 06:11:58 -08:00
parent 684fdb6095
commit ad3c95f273

View file

@ -131,7 +131,6 @@ class MarkdownStream:
# If we have stable content to display...
if final or num_lines > 0:
# How many stable lines do we need to newly show above the live window?
num_printed = len(self.printed)
show = num_lines - num_printed
@ -144,7 +143,7 @@ class MarkdownStream:
show = lines[num_printed:num_lines]
show = "".join(show)
show = Text.from_ansi(show)
self.live.console.print(show) # to the console above the live area
self.live.console.print(show) # to the console above the live area
# Update our record of printed lines
self.printed = lines[:num_lines]