mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-27 15:55:00 +00:00
fix: Use strip("\r\n")
for precise line ending removal
This commit is contained in:
parent
59d0fe00c3
commit
614d297f22
1 changed files with 2 additions and 2 deletions
|
@ -455,12 +455,12 @@ class InputOutput:
|
|||
elif multiline_input and line.strip():
|
||||
if multiline_tag:
|
||||
# Check if line is exactly "tag}"
|
||||
if line.strip() == f"{multiline_tag}}}":
|
||||
if line.strip("\r\n") == f"{multiline_tag}}}":
|
||||
break
|
||||
else:
|
||||
inp += line + "\n"
|
||||
# Check if line is exactly "}"
|
||||
elif line.strip() == "}":
|
||||
elif line.strip("\r\n") == "}":
|
||||
break
|
||||
else:
|
||||
inp += line + "\n"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue