From 7b98db2f7df93c7cd14ed7ba3695f8776e7b5710 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Tue, 19 Nov 2024 12:34:43 -0800 Subject: [PATCH] fix: Escape f-string brace in multiline input tag handling --- aider/io.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aider/io.py b/aider/io.py index 46cf73940..2be2472ac 100644 --- a/aider/io.py +++ b/aider/io.py @@ -455,7 +455,7 @@ class InputOutput: elif line and line[-1] == "}" and multiline_input: if multiline_tag: # Check if the line ends with tag} - if line.endswith(f"{multiline_tag}}"): + if line.endswith(f"{multiline_tag}}}"): inp += line[:-len(multiline_tag)-1] + "\n" break else: