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();
|
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';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue