From 3ecb1ca9bac354a70cedfc006a2c41f1aa5ece6d Mon Sep 17 00:00:00 2001 From: Octol1ttle Date: Fri, 20 Feb 2026 22:54:10 +0500 Subject: [PATCH] fix(OtherLogsPage): remove CR when removing LF Signed-off-by: Octol1ttle (cherry picked from commit 3f11b185a849ec088fe02e9f87c07a7432a8c668) --- launcher/ui/pages/instance/OtherLogsPage.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/launcher/ui/pages/instance/OtherLogsPage.cpp b/launcher/ui/pages/instance/OtherLogsPage.cpp index a7e9ef16f..19a9db04f 100644 --- a/launcher/ui/pages/instance/OtherLogsPage.cpp +++ b/launcher/ui/pages/instance/OtherLogsPage.cpp @@ -280,7 +280,9 @@ void OtherLogsPage::reload() if (line.isEmpty()) return false; if (line.back() == '\n') - line = line.remove(line.size() - 1, 1); + line.resize(line.size() - 1); + if (line.back() == '\r') + line.resize(line.size() - 1); MessageLevel level = MessageLevel::Unknown; QString lineTemp = line; // don't edit out the time and level for clarity