refactor: use f-string

This commit is contained in:
David Culley 2024-07-10 19:18:38 +02:00
parent 8f6538e22e
commit 1dcb58bdab
No known key found for this signature in database
GPG key ID: E6D8947E83ACCD4F

View file

@ -321,7 +321,7 @@ require("anki/ui").loaded.then(() => require("anki/NoteEditor").instances[0].too
class_attribute = "linkb" if rightside else "rounded"
if not disables:
class_attribute += " perm"
class_attribute = f"{class_attribute} perm"
return f"""<button tabindex=-1
{id_attribute_assignment}