Fix newlines in plain text messages again

This commit is contained in:
Nicolas Werner 2020-01-27 18:36:34 +01:00
parent 792c39d304
commit 760d4ddef9

View file

@ -294,7 +294,7 @@ TimelineModel::data(const QString &id, int role) const
if (body_.startsWith('\n'))
body_ = body_.right(body_.size() - 1);
}
formattedBody_ = body_.toHtmlEscaped();
formattedBody_ = body_.toHtmlEscaped().replace('\n', "<br>");
} else {
if (isReply)
formattedBody_ = formattedBody_.remove(replyFallback);