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

View File

@ -1942,8 +1942,10 @@ export function renderStoryString(params) {
// 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.length > 0 && !output.endsWith('\n')) { if (output.length > 0 && !output.endsWith('\n')) {
if (!power_user.instruct.enabled || power_user.instruct.wrap) {
output += '\n'; output += '\n';
} }
}
return output; return output;
} catch (e) { } catch (e) {