From 1014de1b121aca44f01f752dbca8a219a7b0893f Mon Sep 17 00:00:00 2001 From: liangfung <1098486429@qq.com> Date: Tue, 7 Nov 2023 00:20:29 +0800 Subject: [PATCH] fix: Generate code block templates --- ee/tabby-ui/components/prompt-form.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ee/tabby-ui/components/prompt-form.tsx b/ee/tabby-ui/components/prompt-form.tsx index df06121..dd6b5e1 100644 --- a/ee/tabby-ui/components/prompt-form.tsx +++ b/ee/tabby-ui/components/prompt-form.tsx @@ -122,7 +122,7 @@ export function PromptForm({ if (!completion?.doc) return finalInput = finalInput.replaceAll( key, - `${'```'}${completion.doc?.language ?? ''}\n${ + `\n${'```'}${completion.doc?.language ?? ''}\n${ completion.doc.body ?? '' }\n${'```'}\n` )