Explore: Handle newlines in LogRow Highlighter (#17425)

fixed-background
rrFeng 6 years ago committed by Torkel Ödegaard
parent e06abb30aa
commit c31b939e10
  1. 2
      public/app/features/explore/LogRow.tsx

@ -284,6 +284,7 @@ export class LogRow extends PureComponent<Props, State> {
<span className={styles}>
{parsed && (
<Highlighter
style={{ whiteSpace: 'pre-wrap' }}
autoEscape
highlightTag={FieldHighlight(this.onClickHighlight)}
textToHighlight={entry}
@ -293,6 +294,7 @@ export class LogRow extends PureComponent<Props, State> {
)}
{!parsed && needsHighlighter && (
<Highlighter
style={{ whiteSpace: 'pre-wrap' }}
textToHighlight={entry}
searchWords={highlights}
findChunks={findHighlightChunksInText}

Loading…
Cancel
Save