Skip to content

Commit

Permalink
fix(ui): Add newlines to copy and paste of logs (argoproj#14019) (arg…
Browse files Browse the repository at this point in the history
…oproj#14103) (argoproj#14144)

Signed-off-by: Alex Collins <[email protected]>
Co-authored-by: Alex Collins <[email protected]>
Signed-off-by: schakrad <[email protected]>
  • Loading branch information
2 people authored and schakrad committed Jul 24, 2023
1 parent 7f998e2 commit 8df8e8b
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 8df8e8b

Please sign in to comment.