mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-02-26 08:58:09 +01:00
Don't add a newline at the end of empty story string
This commit is contained in:
parent
cc3e27eca1
commit
5d1fff3df6
@ -1242,7 +1242,7 @@ export function renderStoryString(params) {
|
||||
output = output.trimStart();
|
||||
|
||||
// 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';
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user