mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-25 12:38:48 +03:00
Fix newlines in plain text messages again
This commit is contained in:
parent
792c39d304
commit
760d4ddef9
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue