From 41caeac281c331b358a872fe376051ac340baf83 Mon Sep 17 00:00:00 2001 From: Phenom Date: Wed, 11 Nov 2020 18:36:17 +0100 Subject: [PATCH] Fix Underline Bug in Forum Posts --- retroshare-gui/src/util/HandleRichText.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/retroshare-gui/src/util/HandleRichText.cpp b/retroshare-gui/src/util/HandleRichText.cpp index 466e540de..deaaec79b 100644 --- a/retroshare-gui/src/util/HandleRichText.cpp +++ b/retroshare-gui/src/util/HandleRichText.cpp @@ -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; } }