summary refs log tree commit diff
path: root/src/Utils.cpp
diff options
context:
space:
mode:
authorJoseph Donofry <joedonofry@gmail.com>2020-01-28 19:20:51 -0500
committerJoseph Donofry <joedonofry@gmail.com>2020-01-28 19:20:51 -0500
commitd6d4076d36bdc7171c7d422fb24f64f273ee5f83 (patch)
tree9ce36ae841adb047f736119badc08bf45b574b7e /src/Utils.cpp
parentChange tooltip palette settings for QML (diff)
parentRemove stale deps folder (diff)
downloadnheko-d6d4076d36bdc7171c7d422fb24f64f273ee5f83.tar.xz
Merge branch '0.7.0-dev' of ssh://github.com/Nheko-Reborn/nheko into 0.7.0-dev
Diffstat (limited to 'src/Utils.cpp')
-rw-r--r--src/Utils.cpp4
1 files changed, 4 insertions, 0 deletions
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("<p>") == 1 && result.startsWith("<p>") && result.endsWith("</p>")) { + result = result.mid(3, result.size() - 3 - 4); + } + return result; }