style: fix indentation in comment instructions template

This commit is contained in:
Paul Gauthier 2024-12-01 08:26:21 -08:00 committed by Paul Gauthier (aider)
parent 97e292e251
commit a3a510308c

View file

@ -175,9 +175,9 @@ class FileWatcher:
from grep_ast import TreeContext from grep_ast import TreeContext
res = """The "ai" comments below can be found in the code files I've shared with you. res = """The "ai" comments below can be found in the code files I've shared with you.
They contain your instructions. They contain your instructions.
Make the requested changes. Make the requested changes.
Be sure to remove all these "ai" comments from the code! Be sure to remove all these "ai" comments from the code!
""" """
@ -195,6 +195,7 @@ class FileWatcher:
# Convert comment line numbers to line indices (0-based) # Convert comment line numbers to line indices (0-based)
lois = [ln - 1 for ln, _ in zip(line_nums, comments) if ln > 0] lois = [ln - 1 for ln, _ in zip(line_nums, comments) if ln > 0]
# ai: just remove this comment!
context = TreeContext( context = TreeContext(
rel_fname, rel_fname,
code, code,
@ -204,7 +205,7 @@ class FileWatcher:
last_line=False, last_line=False,
margin=0, margin=0,
mark_lois=False, mark_lois=False,
loi_pad=0, loi_pad=3,
show_top_of_file_parent_scope=False, show_top_of_file_parent_scope=False,
) )
context.lines_of_interest = set() context.lines_of_interest = set()