mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-04 11:45:00 +00:00
style: Fix whitespace and formatting in mdstream.py
This commit is contained in:
parent
684fdb6095
commit
ad3c95f273
1 changed files with 3 additions and 4 deletions
|
@ -131,7 +131,6 @@ class MarkdownStream:
|
||||||
|
|
||||||
# If we have stable content to display...
|
# If we have stable content to display...
|
||||||
if final or num_lines > 0:
|
if final or num_lines > 0:
|
||||||
|
|
||||||
# How many stable lines do we need to newly show above the live window?
|
# How many stable lines do we need to newly show above the live window?
|
||||||
num_printed = len(self.printed)
|
num_printed = len(self.printed)
|
||||||
show = num_lines - num_printed
|
show = num_lines - num_printed
|
||||||
|
@ -144,7 +143,7 @@ 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) # 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
|
# Update our record of printed lines
|
||||||
self.printed = lines[:num_lines]
|
self.printed = lines[:num_lines]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue