mirror of
https://github.com/avrdudes/avrdude.git
synced 2026-09-29 04:18:54 +03:00
Fix BOL detection for internal logging
Internal log messages are generated without setting "no_nl", so the log is always at BOL next time.
This commit is contained in:
@@ -257,7 +257,7 @@ class adgui(QObject):
|
||||
elif level < ad.MSG_TRACE:
|
||||
html = f"<font color={color}>{s}</font><br>\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
|
||||
|
||||
Reference in New Issue
Block a user