mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-10 01:33:54 +01:00
Set log messages to wrap on line breaks
This retains \n characters on strings given as inputs
This commit is contained in:
parent
454a792f0a
commit
aa929b1837
@ -101,7 +101,7 @@ function ScriptLogPopup(props: IProps): React.ReactElement {
|
||||
</div>
|
||||
</div>
|
||||
<div className="log-box-log-container">
|
||||
<p>{props.script.logs.map((line: string, i: number): JSX.Element => <span key={i}>{line}<br /></span>)}</p>
|
||||
<p>{props.script.logs.map((line: string, i: number): JSX.Element => <span key={i} style={{whiteSpace: "pre-line"}}>{line}<br /></span>)}</p>
|
||||
</div>
|
||||
</>);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user