--- a/QTfrontend/ui/widget/chatwidget.cpp Tue Dec 31 15:18:18 2024 +0100
+++ b/QTfrontend/ui/widget/chatwidget.cpp Tue Dec 31 15:19:43 2024 +0100
@@ -471,9 +471,9 @@
HWApplication::alert(this, 800);
}
- chatStrings.append(line);
+ chatStrings.append(QStringLiteral("<div>%1</div>").arg(line));
- chatText->setHtml("<html><body>"+chatStrings.join("<br>")+"</body></html>");
+ chatText->setHtml("<html><body>"+chatStrings.join("")+"</body></html>");
afterContentAdd();
}
@@ -487,7 +487,7 @@
chatStrings.append("<hr>" + str + "<hr>");
- chatText->setHtml("<html><body>"+chatStrings.join("<br>")+"</body></html>");
+ chatText->setHtml("<html><body>"+chatStrings.join("")+"</body></html>");
afterContentAdd();
}