mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 01:35:00 +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):
|
||||
chunks = self.format_chat_chunks()
|
||||
|
||||
|
||||
markdown = ""
|
||||
|
||||
|
||||
# Only include specified chunks in order
|
||||
for messages in [chunks.repo, chunks.readonly_files, chunks.chat_files, chunks.cur]:
|
||||
for msg in messages:
|
||||
# Only include user messages
|
||||
if msg["role"] != "user":
|
||||
continue
|
||||
|
||||
|
||||
content = msg["content"]
|
||||
|
||||
|
||||
# Handle image/multipart content
|
||||
if isinstance(content, list):
|
||||
for part in content:
|
||||
|
@ -27,5 +27,5 @@ class EditorEditBlockCoder(EditBlockCoder):
|
|||
markdown += part["text"] + "\n\n"
|
||||
else:
|
||||
markdown += content + "\n\n"
|
||||
|
||||
|
||||
return markdown.strip()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue