Skip to content

Commit e1eb246

Browse files
committed
fix: Application Logs in non-follow mode incorrectly render newlines
1 parent 6f7b3d7 commit e1eb246

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/plugin-codeflare/src/components/Terminal.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ export default class XTerm extends React.PureComponent<Props, State> {
9797

9898
if (this.props.initialContent) {
9999
// @starpit i don't know why we have to split the newlines...
100-
//this.props.initialContent.split(/\n/).forEach(this.writeln)
101-
this.terminal.write(this.props.initialContent)
100+
this.props.initialContent.split(/\n/).forEach((line) => this.terminal.writeln(line))
101+
// this.terminal.write(this.props.initialContent)
102102
}
103103

104104
this.terminal.open(xtermContainer)

0 commit comments

Comments
 (0)