fix: tw log not change line

This commit is contained in:
linonetwo 2023-06-10 16:28:08 +08:00
parent 5651ea70c6
commit 28c1f3eb3c

View file

@ -123,7 +123,7 @@ export function executeScriptInTWContext(
${scriptContentWithVariable}`);
}
// vm execution is Sync, so we can't get streambed result. return all console.log messages to user at once.
const message = context.executionResults.join('\n\n');
const message = `\n\n${context.executionResults.join('\n\n')}`;
observer.next({ type: 'stdout', message });
}