diff --git a/qt/aqt/editor.py b/qt/aqt/editor.py
index 0f447bb02..f133e10f1 100644
--- a/qt/aqt/editor.py
+++ b/qt/aqt/editor.py
@@ -301,7 +301,7 @@ require("anki/ui").loaded.then(() => require("anki/NoteEditor").instances[0].too
iconstr = self.resourceToData(icon)
else:
iconstr = f"/_anki/imgs/{icon}.png"
- imgelm = f"""
"""
+ imgelm = f'
'
else:
imgelm = ""
if label or not imgelm: