if (!hasNewLine)
textOut.append(QChar::LineSeparator);
}
+ } else if (char0 == QLatin1Char('s')) {
+ if (tag == QLatin1String("strong"))
+ format.setFontWeight(QFont::Bold);
} else if (char0 == QLatin1Char('u')) {
if (tagLength == 1)
format.setFontUnderline(true);
return true;
} else if (tag == QLatin1String("font")) {
return true;
+ } else if (tag == QLatin1String("strong")) {
+ return true;
} else if (tag == QLatin1String("ol")) {
if (!listStack.isEmpty()) {
listStack.pop();
QTest::newRow("bold") << "<b>bold</b>" << "bold";
QTest::newRow("italic") << "<b>italic</b>" << "italic";
+ QTest::newRow("strong") << "<strong>strong</strong>" << "strong";
QTest::newRow("missing >") << "<b>text</b" << "text";
QTest::newRow("missing b>") << "<b>text</" << "text";
QTest::newRow("missing /b>") << "<b>text<" << "text";