Wrap <pre> tag.

This commit is contained in:
Black Hat
2018-11-26 18:49:03 +08:00
parent 348a8186fd
commit 948da868a9
4 changed files with 15 additions and 3 deletions

View File

@@ -45,6 +45,8 @@ QString eventToString(const BaseEventT& evt,
"</b>");
pos += userPillRegExp.matchedLength();
}
static const QRegExp codePillRegExp("<pre>(.*)</pre>");
formattedStr.replace(codePillRegExp, "<i>\\1</i>");
return formattedStr;
}
if (e.hasFileContent()) {