fix(OtherLogsPage): remove CR when removing LF

Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
(cherry picked from commit 3f11b185a8)
This commit is contained in:
Octol1ttle 2026-02-20 22:54:10 +05:00 committed by github-actions[bot]
parent 156f7eabd4
commit 3ecb1ca9ba

View file

@ -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