Merge pull request #2109 from PhenomRetroShare/Fix_UnderlineBug

Fix Underline Bug in Forum Posts
This commit is contained in:
csoler 2020-11-11 20:04:24 +01:00 committed by GitHub
commit 4a7906376f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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