From 471ce04604ea4c09a47f71a6961dac498751e175 Mon Sep 17 00:00:00 2001 From: Joerg Wunsch Date: Thu, 28 Mar 2024 09:53:42 +0100 Subject: [PATCH] Fix BOL detection for internal logging Internal log messages are generated without setting "no_nl", so the log is always at BOL next time. --- src/python/adgui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/python/adgui.py b/src/python/adgui.py index 3f4fb9b1..0f0bbf10 100755 --- a/src/python/adgui.py +++ b/src/python/adgui.py @@ -257,7 +257,7 @@ class adgui(QObject): elif level < ad.MSG_TRACE: html = f"{s}
\n" if s != "" and s != "\n": - new_bol = s[-1] == '\n' + new_bol = not no_nl or (s[-1] == '\n') if not no_nl: s += '\n' # always save non-empty messages to debug log