Skip to content

Commit

Permalink
fix: UI terminal output incorrect newline (#6182)
Browse files Browse the repository at this point in the history
  • Loading branch information
xingyaoww authored Jan 10, 2025
1 parent ee701ea commit 931792e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frontend/src/hooks/use-terminal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,9 @@ export const useTerminal = ({
content = content.replaceAll(secret, "*".repeat(10));
});

terminal.current?.writeln(parseTerminalOutput(content));
terminal.current?.writeln(
parseTerminalOutput(content.replaceAll("\n", "\r\n").trim()),
);

if (type === "output") {
terminal.current.write(`\n$ `);
Expand Down

0 comments on commit 931792e

Please sign in to comment.