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.
This commit is contained in:
SDS 2023-08-01 11:46:01 +02:00 committed by Cohee
parent 72213add56
commit 73fd306b8b
1 changed files with 1 additions and 1 deletions

View File

@ -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