mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 13:59:52 +08:00
Utils: fix onlyHasImgInHtml() to consider <span> and <div>
This commit is contained in:
parent
a6e7d9fcac
commit
dceec24021
@ -1628,5 +1628,6 @@ QString VUtils::promptForFileName(const QString &p_title,
|
||||
bool VUtils::onlyHasImgInHtml(const QString &p_html)
|
||||
{
|
||||
// Tricky.
|
||||
return !p_html.contains("<p ");
|
||||
QRegExp reg("<(?:p|span|div) ");
|
||||
return !p_html.contains(reg);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user