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:
parent
72213add56
commit
73fd306b8b
|
@ -1824,7 +1824,7 @@ function getPersonaDescription(storyString) {
|
||||||
case persona_description_positions.BEFORE_CHAR:
|
case persona_description_positions.BEFORE_CHAR:
|
||||||
return `${substituteParams(power_user.persona_description)}\n${storyString}`;
|
return `${substituteParams(power_user.persona_description)}\n${storyString}`;
|
||||||
case persona_description_positions.AFTER_CHAR:
|
case persona_description_positions.AFTER_CHAR:
|
||||||
return `${storyString}\n${substituteParams(power_user.persona_description)}`;
|
return `${storyString}${substituteParams(power_user.persona_description)}\n`;
|
||||||
default:
|
default:
|
||||||
if (shouldWIAddPrompt) {
|
if (shouldWIAddPrompt) {
|
||||||
const originalAN = extension_prompts[NOTE_MODULE_NAME].value
|
const originalAN = extension_prompts[NOTE_MODULE_NAME].value
|
||||||
|
|
Loading…
Reference in New Issue