From e78f5b28a506d1cbdd3a49d09c8349a83ade5851 Mon Sep 17 00:00:00 2001 From: yetone Date: Tue, 8 Oct 2024 17:43:21 +0800 Subject: [PATCH] fix: missing breakline in context prompt template (#690) --- lua/avante/templates/_context.avanterules | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/avante/templates/_context.avanterules b/lua/avante/templates/_context.avanterules index 7fe42d9b1..7a942648f 100644 --- a/lua/avante/templates/_context.avanterules +++ b/lua/avante/templates/_context.avanterules @@ -1,7 +1,7 @@ {%- if use_xml_format -%} {{filepath}} -{%- if selected_code -%} +{% if selected_code -%} ```{{code_lang}} {{file_content}} @@ -23,7 +23,7 @@ {% else %} FILEPATH: {{filepath}} -{%- if selected_code -%} +{% if selected_code -%} CONTEXT: ```{{code_lang}} {{file_content}}