Commit 249a2257 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Merge remote-tracking branch 'origin/release/20.04'

parents 66f403e3 7f2baf04
......@@ -706,7 +706,7 @@ QString Util::processHtml(const QString &htmlSource, QString &extraHead)
QString textBeforeDoctype;
if (indexDoctype != -1) {
textBeforeDoctype = s.left(indexDoctype);
s = s.remove(textBeforeDoctype);
s.remove(textBeforeDoctype);
}
s = s.remove(QRegularExpression(QStringLiteral("^<!DOCTYPE[^>]*>"), QRegularExpression::CaseInsensitiveOption)).trimmed();
s = s.remove(QRegularExpression(QStringLiteral("<html[^>]*>"), QRegularExpression::CaseInsensitiveOption)).trimmed();
......
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