mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 10:14:59 +00:00
style: remove trailing whitespace in editor_editblock_coder.py
This commit is contained in:
parent
f8277c55a8
commit
8f57186945
1 changed files with 5 additions and 5 deletions
|
@ -8,18 +8,18 @@ class EditorEditBlockCoder(EditBlockCoder):
|
||||||
|
|
||||||
def format_chat_markdown(self):
|
def format_chat_markdown(self):
|
||||||
chunks = self.format_chat_chunks()
|
chunks = self.format_chat_chunks()
|
||||||
|
|
||||||
markdown = ""
|
markdown = ""
|
||||||
|
|
||||||
# Only include specified chunks in order
|
# Only include specified chunks in order
|
||||||
for messages in [chunks.repo, chunks.readonly_files, chunks.chat_files, chunks.cur]:
|
for messages in [chunks.repo, chunks.readonly_files, chunks.chat_files, chunks.cur]:
|
||||||
for msg in messages:
|
for msg in messages:
|
||||||
# Only include user messages
|
# Only include user messages
|
||||||
if msg["role"] != "user":
|
if msg["role"] != "user":
|
||||||
continue
|
continue
|
||||||
|
|
||||||
content = msg["content"]
|
content = msg["content"]
|
||||||
|
|
||||||
# Handle image/multipart content
|
# Handle image/multipart content
|
||||||
if isinstance(content, list):
|
if isinstance(content, list):
|
||||||
for part in content:
|
for part in content:
|
||||||
|
@ -27,5 +27,5 @@ class EditorEditBlockCoder(EditBlockCoder):
|
||||||
markdown += part["text"] + "\n\n"
|
markdown += part["text"] + "\n\n"
|
||||||
else:
|
else:
|
||||||
markdown += content + "\n\n"
|
markdown += content + "\n\n"
|
||||||
|
|
||||||
return markdown.strip()
|
return markdown.strip()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue