mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 00:35: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():
|
elif multiline_input and line.strip():
|
||||||
if multiline_tag:
|
if multiline_tag:
|
||||||
# Check if line is exactly "tag}"
|
# Check if line is exactly "tag}"
|
||||||
if line.strip() == f"{multiline_tag}}}":
|
if line.strip("\r\n") == f"{multiline_tag}}}":
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
inp += line + "\n"
|
inp += line + "\n"
|
||||||
# Check if line is exactly "}"
|
# Check if line is exactly "}"
|
||||||
elif line.strip() == "}":
|
elif line.strip("\r\n") == "}":
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
inp += line + "\n"
|
inp += line + "\n"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue