From 92b1980c0abf5a1654a96f27c124de3c593d09e6 Mon Sep 17 00:00:00 2001 From: Matt Gajownik Date: Thu, 20 Aug 2020 09:39:05 +1000 Subject: [PATCH] UI: Render tabs and spaces in Log Viewer --- UI/log-viewer.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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());