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: