From c51388e37bb9329b5f031439e6a1c5d99a616cea Mon Sep 17 00:00:00 2001
From: David Culley <6276049+davidculley@users.noreply.github.com>
Date: Wed, 10 Jul 2024 13:45:55 +0200
Subject: [PATCH] style: separate if-else-clauses by empty lines
---
qt/aqt/editor.py | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/qt/aqt/editor.py b/qt/aqt/editor.py
index 8bcaba8df..5f33c78c6 100644
--- a/qt/aqt/editor.py
+++ b/qt/aqt/editor.py
@@ -304,25 +304,32 @@ require("anki/ui").loaded.then(() => require("anki/NoteEditor").instances[0].too
image_element = f'
'
else:
image_element = ""
+
if label or not image_element:
label_element = label or cmd
else:
label_element = ""
+
if id:
idstr = f"id={id}"
else:
idstr = ""
+
if toggleable:
toggleScript = "toggleEditorButton(this);"
else:
toggleScript = ""
+
tip = shortcut(tip)
+
if rightside:
class_ = "linkb"
else:
class_ = "rounded"
+
if not disables:
class_ += " perm"
+
return f"""