mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-05 04:05:04 +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]
|
leading_whitespace = whole_lines[i][:j]
|
||||||
break
|
break
|
||||||
|
|
||||||
if not leading_whitespace:
|
if not leading_whitespace or not all(c.isspace() for c in leading_whitespace):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
matched = all(
|
matched = all(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue