mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Don't add a newline at the end of empty story string
This commit is contained in:
@ -1242,7 +1242,7 @@ export function renderStoryString(params) {
|
|||||||
output = output.trimStart();
|
output = output.trimStart();
|
||||||
|
|
||||||
// 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.endsWith('\n')) {
|
if (output.length > 0 && !output.endsWith('\n')) {
|
||||||
output += '\n';
|
output += '\n';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user