From ede860c99f0afa1b9de179087abc45190a6b8861 Mon Sep 17 00:00:00 2001 From: James Graham Date: Sun, 5 Jun 2022 12:36:33 +0100 Subject: [PATCH] For all html messages \n needs to be replaces with
or the linebreaks are lost --- src/neochatroom.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/neochatroom.cpp b/src/neochatroom.cpp index 4c85f906c..e86f7293f 100644 --- a/src/neochatroom.cpp +++ b/src/neochatroom.cpp @@ -614,6 +614,7 @@ QString NeoChatRoom::markdownToHTML(const QString &markdown) result.replace(QRegularExpression("(
)*$"), ""); result.replace("

", ""); result.replace("

", ""); + result.replace("\n", "
"); return result; }