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