Don't send useless formatted_bodies

This commit is contained in:
Nicolas Werner 2020-01-27 17:25:09 +01:00
parent 9c368fa7f4
commit e81a4e8f9a
2 changed files with 10 additions and 1 deletions

View file

@ -397,6 +397,10 @@ utils::markdownToHtml(const QString &text)
auto result = linkifyMessage(escapeBlacklistedHtml(QString::fromStdString(html))).trimmed();
if (result.count("<p>") == 1 && result.startsWith("<p>") && result.endsWith("</p>")) {
result = result.mid(3, result.size() - 3 - 4);
}
return result;
}