mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 22:34:59 +00:00
added self.fence_ticks
This commit is contained in:
parent
59d99835b1
commit
f625d52bec
2 changed files with 6 additions and 4 deletions
|
@ -364,7 +364,7 @@ class Coder:
|
|||
explain = f"""
|
||||
You *MUST* use {num_ticks} backticks, because some files contain {num_ticks-1} backticks already!"""
|
||||
|
||||
fence = "`" * num_ticks
|
||||
self.fence_ticks = "`" * num_ticks
|
||||
|
||||
number_mapping = {
|
||||
3: "triple",
|
||||
|
@ -375,7 +375,7 @@ You *MUST* use {num_ticks} backticks, because some files contain {num_ticks-1} b
|
|||
|
||||
prompt = prompt.format(
|
||||
num_ticks=num_ticks_name,
|
||||
fence=fence,
|
||||
fence=self.fence_ticks,
|
||||
num_ticks_explanation=explain,
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue