mirror of
https://github.com/avrdudes/avrdude.git
synced 2026-09-28 20:09:12 +03:00
Do not attempt to add <br> if there is no HTML text
Happens for trace messages.
This commit is contained in:
@@ -256,7 +256,7 @@ class adgui(QObject):
|
||||
html = f"<font color={color}><strong>{s}</strong></font>"
|
||||
elif level < ad.MSG_TRACE:
|
||||
html = f"<font color={color}>{s}</font>"
|
||||
if not no_nl or s[-1] == '\n':
|
||||
if html and (not no_nl or s[-1] == '\n'):
|
||||
html += "<br>\n"
|
||||
if s != "" and s != "\n":
|
||||
new_bol = not no_nl or (s[-1] == '\n')
|
||||
|
||||
Reference in New Issue
Block a user