summary refs log tree commit diff
path: root/src/EventAccessors.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/EventAccessors.cpp')
-rw-r--r--src/EventAccessors.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/EventAccessors.cpp b/src/EventAccessors.cpp

index d794a384..4d8b7b8f 100644 --- a/src/EventAccessors.cpp +++ b/src/EventAccessors.cpp
@@ -396,7 +396,7 @@ mtx::accessors::formattedBodyWithFallback(const mtx::events::collections::Timeli if (!formatted.empty()) return QString::fromStdString(formatted); else - return QString::fromStdString(body(event)).toHtmlEscaped().replace("\n", "<br>"); + return QString::fromStdString(body(event)).toHtmlEscaped().replace(QLatin1String("\n"), QLatin1String("<br>")); } std::optional<mtx::crypto::EncryptedFile>