mirror of
				https://github.com/SillyTavern/SillyTavern.git
				synced 2025-06-05 21:59:27 +02:00 
			
		
		
		
	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:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user