Don't force a newline for story string if instruct wrap is disabled

This commit is contained in:
Cohee 2024-04-10 00:04:20 +03:00
parent da01384cb6
commit 99a7925be4
1 changed files with 3 additions and 1 deletions

View File

@ -1942,7 +1942,9 @@ export function renderStoryString(params) {
// add a newline to the end of the story string if it doesn't have one
if (output.length > 0 && !output.endsWith('\n')) {
output += '\n';
if (!power_user.instruct.enabled || power_user.instruct.wrap) {
output += '\n';
}
}
return output;