From ad3c95f2734f518b216035d9fc21b8be8df34074 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Tue, 7 Jan 2025 06:11:58 -0800 Subject: [PATCH] style: Fix whitespace and formatting in mdstream.py --- aider/mdstream.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/aider/mdstream.py b/aider/mdstream.py index b172fa1b6..0ad22b27c 100755 --- a/aider/mdstream.py +++ b/aider/mdstream.py @@ -72,10 +72,10 @@ class MarkdownStream: def _render_markdown_to_lines(self, text): """Render markdown text to a list of lines. - + Args: text (str): Markdown text to render - + Returns: list: List of rendered lines with line endings preserved """ @@ -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]