Skip to content

Commit

Permalink
fix: Add newlines to copy and paste of logs. Fixes argoproj#14019 (ar…
Browse files Browse the repository at this point in the history
…goproj#14103)

Signed-off-by: Alex Collins <[email protected]>
  • Loading branch information
alexec authored and tesla59 committed Dec 16, 2023
1 parent c390ad2 commit fee2159
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,8 @@ export const PodsLogsViewer = (props: PodLogsProps) => {
? (lineNum === 0 || logs[lineNum - 1].timeStamp !== log.timeStamp ? log.timeStampStr : ' '.repeat(log.timeStampStr.length)) + ' '
: '') +
// show the log content, highlight the filter text
log.content?.replace(highlight, (substring: string) => whiteOnYellow + substring + reset);
log.content?.replace(highlight, (substring: string) => whiteOnYellow + substring + reset) +
'\n';

// logs are in 14px wide fixed width font
let width = 0;
Expand Down

0 comments on commit fee2159

Please sign in to comment.