For all html messages \n needs to be replaces with <br> or the linebreaks are lost

This commit is contained in:
James Graham
2022-06-05 12:36:33 +01:00
parent f8951fc760
commit ede860c99f

View File

@@ -614,6 +614,7 @@ QString NeoChatRoom::markdownToHTML(const QString &markdown)
result.replace(QRegularExpression("(<br />)*$"), "");
result.replace("<p>", "");
result.replace("</p>", "");
result.replace("\n", "<br>");
return result;
}