mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-03 11:14:59 +00:00
Ensure leading_whitespace is actually space
This commit is contained in:
parent
8d408e1fc4
commit
806805c0b1
1 changed files with 1 additions and 1 deletions
|
@ -77,7 +77,7 @@ def replace_part_with_missing_leading_whitespace(whole, part, replace):
|
|||
leading_whitespace = whole_lines[i][:j]
|
||||
break
|
||||
|
||||
if not leading_whitespace:
|
||||
if not leading_whitespace or not all(c.isspace() for c in leading_whitespace):
|
||||
continue
|
||||
|
||||
matched = all(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue