Fix Underline Bug in Forum Posts

This commit is contained in:
Phenom 2020-11-11 18:36:17 +01:00
parent b4efb412be
commit 41caeac281

View File

@ -1059,11 +1059,13 @@ static void styleCreate(QDomDocument& doc
(flag & RSHTML_FORMATTEXT_REMOVE_FONT_SIZE && key == "font-size") || (flag & RSHTML_FORMATTEXT_REMOVE_FONT_SIZE && key == "font-size") ||
(flag & RSHTML_FORMATTEXT_REMOVE_FONT_WEIGHT && key == "font-weight") || (flag & RSHTML_FORMATTEXT_REMOVE_FONT_WEIGHT && key == "font-weight") ||
(flag & RSHTML_FORMATTEXT_REMOVE_FONT_STYLE && key == "font-style")) { (flag & RSHTML_FORMATTEXT_REMOVE_FONT_STYLE && key == "font-style")) {
style += "{}";
continue; continue;
} }
if (flag & RSHTML_FORMATTEXT_REMOVE_COLOR) { if (flag & RSHTML_FORMATTEXT_REMOVE_COLOR) {
if (key == "color") { if (key == "color") {
style += "{}";
continue; continue;
} }
} else if (flag & RSHTML_FORMATTEXT_FIX_COLORS) { } else if (flag & RSHTML_FORMATTEXT_FIX_COLORS) {
@ -1078,6 +1080,7 @@ static void styleCreate(QDomDocument& doc
// it can become unreadable on the original background. // it can become unreadable on the original background.
// Also, FIX_COLORS is intended to display text on the default // Also, FIX_COLORS is intended to display text on the default
// background color of the operating system. // background color of the operating system.
style += "{}";
continue; continue;
} }
} }