From 73fd306b8b7d4774c85df96a308b0923a3628fd4 Mon Sep 17 00:00:00 2001 From: SDS <52386626+StefanDanielSchwarz@users.noreply.github.com> Date: Tue, 1 Aug 2023 11:46:01 +0200 Subject: [PATCH] Fixed persona_description linebreak When persona description is positioned after character card, there are double linebreaks before and none behind the persona description, because storyString already brings a trailing one whereas persona_description doesn't. This fixes that by putting the linebreak where it belongs. --- public/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/script.js b/public/script.js index 45bca3d66..2d144bc5e 100644 --- a/public/script.js +++ b/public/script.js @@ -1824,7 +1824,7 @@ function getPersonaDescription(storyString) { case persona_description_positions.BEFORE_CHAR: return `${substituteParams(power_user.persona_description)}\n${storyString}`; case persona_description_positions.AFTER_CHAR: - return `${storyString}\n${substituteParams(power_user.persona_description)}`; + return `${storyString}${substituteParams(power_user.persona_description)}\n`; default: if (shouldWIAddPrompt) { const originalAN = extension_prompts[NOTE_MODULE_NAME].value