Skip to content

Commit

Permalink
fix: Add newlines to copy and paste of logs. Fixes #14019 (#14103)
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Collins <[email protected]>
  • Loading branch information
alexec authored Jun 20, 2023
1 parent cdef312 commit 4ca903b
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 4ca903b

Please sign in to comment.