mirror of
				https://github.com/SillyTavern/SillyTavern.git
				synced 2025-06-05 21:59:27 +02:00 
			
		
		
		
	Only remove leading newlines
This commit is contained in:
		| @@ -1848,8 +1848,8 @@ export function renderStoryString(params) { | |||||||
|         // substitute {{macro}} params that are not defined in the story string |         // substitute {{macro}} params that are not defined in the story string | ||||||
|         output = substituteParams(output, params.user, params.char); |         output = substituteParams(output, params.user, params.char); | ||||||
|  |  | ||||||
|         // remove leading whitespace |         // remove leading newlines | ||||||
|         // output = output.trimStart(); |         output = output.replace(/^\n+/, ''); | ||||||
|  |  | ||||||
|         // add a newline to the end of the story string if it doesn't have one |         // add a newline to the end of the story string if it doesn't have one | ||||||
|         if (output.length > 0 && !output.endsWith('\n')) { |         if (output.length > 0 && !output.endsWith('\n')) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user