mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Explore: Handle newlines in LogRow Highlighter (#17425)
This commit is contained in:
@@ -284,6 +284,7 @@ export class LogRow extends PureComponent<Props, State> {
|
|||||||
<span className={styles}>
|
<span className={styles}>
|
||||||
{parsed && (
|
{parsed && (
|
||||||
<Highlighter
|
<Highlighter
|
||||||
|
style={{ whiteSpace: 'pre-wrap' }}
|
||||||
autoEscape
|
autoEscape
|
||||||
highlightTag={FieldHighlight(this.onClickHighlight)}
|
highlightTag={FieldHighlight(this.onClickHighlight)}
|
||||||
textToHighlight={entry}
|
textToHighlight={entry}
|
||||||
@@ -293,6 +294,7 @@ export class LogRow extends PureComponent<Props, State> {
|
|||||||
)}
|
)}
|
||||||
{!parsed && needsHighlighter && (
|
{!parsed && needsHighlighter && (
|
||||||
<Highlighter
|
<Highlighter
|
||||||
|
style={{ whiteSpace: 'pre-wrap' }}
|
||||||
textToHighlight={entry}
|
textToHighlight={entry}
|
||||||
searchWords={highlights}
|
searchWords={highlights}
|
||||||
findChunks={findHighlightChunksInText}
|
findChunks={findHighlightChunksInText}
|
||||||
|
|||||||
Reference in New Issue
Block a user