Merge transitional_engine branch into default default tip
authorunC0Rr
Tue, 31 Dec 2024 15:19:43 +0100
changeset 16083 629d5123a979
parent 16066 2b4f361e3891 (diff)
parent 16082 85d7d6b71087 (current diff)
Merge transitional_engine branch into default
--- 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();
 }