Skip to content

Commit 6d03557

Browse files
Rich-HarrisRich Harris
and
Rich Harris
authored
preserve newlines - fixes sveltejs#325 (sveltejs#354)
Co-authored-by: Rich Harris <[email protected]>
1 parent 6e39c12 commit 6d03557

File tree

1 file changed

+1
-1
lines changed
  • src/lib/client/adapters/webcontainer

1 file changed

+1
-1
lines changed

src/lib/client/adapters/webcontainer/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export async function create(base, error, progress, logs) {
5252
// clear screen
5353
logs.set([]);
5454
} else {
55-
const log = converter.toHtml(escape_html(chunk));
55+
const log = converter.toHtml(escape_html(chunk)).replace(/\n/g, '<br>');
5656
logs.update(($logs) => [...$logs, log]);
5757
}
5858
}

0 commit comments

Comments
 (0)