replace line breaks with br

main
alex 2023-11-13 17:37:02 +01:00
parent 35958308d9
commit 15e5052dbc
1 changed files with 5 additions and 1 deletions

View File

@ -216,7 +216,11 @@ export default function LogCard({
style = { padding: "1px", color }; style = { padding: "1px", color };
return <span style={style}>{log}</span>; return (
<span style={style}>
{log.replace(/(?:\r\n|\r|\n)/g, "<br>")}
</span>
);
}} }}
followOutput={true} followOutput={true}
/> />