Commit c31b939e by rrFeng Committed by Torkel Ödegaard

Explore: Handle newlines in LogRow Highlighter (#17425)

parent e06abb30
......@@ -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}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment