From e81a4e8f9abb7f2dbdc419929bcaf6a3d4065bea Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Mon, 27 Jan 2020 17:25:09 +0100 Subject: Don't send useless formatted_bodies --- src/Utils.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/Utils.cpp') diff --git a/src/Utils.cpp b/src/Utils.cpp index 5a67ef62..76ffed31 100644 --- a/src/Utils.cpp +++ b/src/Utils.cpp @@ -397,6 +397,10 @@ utils::markdownToHtml(const QString &text) auto result = linkifyMessage(escapeBlacklistedHtml(QString::fromStdString(html))).trimmed(); + if (result.count("

") == 1 && result.startsWith("

") && result.endsWith("

")) { + result = result.mid(3, result.size() - 3 - 4); + } + return result; } -- cgit 1.5.1