From 21b12e0f2a0e81757e2e4484ee07c2a8af2b0a6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20B=C5=99=C3=ADza?= Date: Tue, 2 Jul 2024 16:47:31 +0200 Subject: [PATCH] Actually trim HTML messages when requested --- modules/Lith/Core/formattedstring.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/Lith/Core/formattedstring.cpp b/modules/Lith/Core/formattedstring.cpp index cc04991..3a7f127 100644 --- a/modules/Lith/Core/formattedstring.cpp +++ b/modules/Lith/Core/formattedstring.cpp @@ -142,7 +142,7 @@ QString FormattedString::Part::toHtml(QStringView fullText, const ColorTheme& th } } } else { - finalText = text(fullText, -1).toString(); + finalText = text(fullText, trim).toString(); } ret.append(finalText.toHtmlEscaped());