Respect newlines for `result.message.text`.
This commit is contained in:
Родитель
d14c42f187
Коммит
1a4cc8bf95
|
@ -111,7 +111,7 @@ export function renderCell<T extends ISimpleTableCell>(
|
|||
<ReactMarkdown source={formattedMarkdown}
|
||||
renderers={{ link: ({href, children}) => <a href={href} target="_blank">{children}</a> }} />
|
||||
</div> // Div to cancel out containers display flex row.
|
||||
: <Hi>{renderMessageWithEmbeddedLinks(result, formattedMessage)}</Hi> || ''}
|
||||
: <span style={{ whiteSpace: 'pre-line' }}><Hi>{renderMessageWithEmbeddedLinks(result, formattedMessage)}</Hi></span> || ''}
|
||||
<Snippet ploc={result.locations?.[0]?.physicalLocation} />
|
||||
</>
|
||||
case 'Rule':
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@microsoft/sarif-web-component",
|
||||
"version": "0.6.0-12",
|
||||
"version": "0.6.0-13",
|
||||
"author": "Microsoft",
|
||||
"description": "Sarif Viewer",
|
||||
"license": "MIT",
|
||||
|
|
Загрузка…
Ссылка в новой задаче