diff --git a/UI/log-viewer.cpp b/UI/log-viewer.cpp
index 554c0535c..0ba673cdc 100644
--- a/UI/log-viewer.cpp
+++ b/UI/log-viewer.cpp
@@ -133,7 +133,9 @@ void OBSLogViewer::AddLine(int type, const QString &str)
QTextCursor newCursor = textArea->textCursor();
newCursor.movePosition(QTextCursor::End);
- newCursor.insertHtml(msg + QStringLiteral("
"));
+ newCursor.insertHtml(
+ QStringLiteral("
") + msg +
+ QStringLiteral("
"));
if (bottomScrolled)
scroll->setValue(scroll->maximum());