mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-28 16:25:00 +00:00
Don't indent blank lines
This commit is contained in:
parent
5a3fd35c16
commit
5612c8e13d
1 changed files with 3 additions and 1 deletions
|
@ -86,7 +86,9 @@ def replace_part_with_missing_leading_whitespace(whole, part, replace):
|
|||
)
|
||||
|
||||
if matched:
|
||||
replace_lines = [leading_whitespace + rline for rline in replace_lines]
|
||||
replace_lines = [
|
||||
leading_whitespace + rline if rline else rline for rline in replace_lines
|
||||
]
|
||||
whole_lines = whole_lines[:i] + replace_lines + whole_lines[i + len(part_lines) :]
|
||||
return "\n".join(whole_lines) + "\n"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue