mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 22:34:59 +00:00
use a word for 3,4,5 backticks
This commit is contained in:
parent
f005404ec0
commit
59d99835b1
2 changed files with 11 additions and 4 deletions
|
@ -366,8 +366,15 @@ You *MUST* use {num_ticks} backticks, because some files contain {num_ticks-1} b
|
|||
|
||||
fence = "`" * num_ticks
|
||||
|
||||
number_mapping = {
|
||||
3: "triple",
|
||||
4: "quadruple",
|
||||
5: "quintuple",
|
||||
}
|
||||
num_ticks_name = number_mapping.get(num_ticks, str(num_ticks))
|
||||
|
||||
prompt = prompt.format(
|
||||
num_ticks=num_ticks,
|
||||
num_ticks=num_ticks_name,
|
||||
fence=fence,
|
||||
num_ticks_explanation=explain,
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue