mirror of
https://github.com/ankitects/anki.git
synced 2025-09-22 07:52:24 -04:00
refactor: simplify f-string
This commit is contained in:
parent
9d8782c31c
commit
bba66fd31b
1 changed files with 1 additions and 1 deletions
|
@ -301,7 +301,7 @@ require("anki/ui").loaded.then(() => require("anki/NoteEditor").instances[0].too
|
||||||
iconstr = self.resourceToData(icon)
|
iconstr = self.resourceToData(icon)
|
||||||
else:
|
else:
|
||||||
iconstr = f"/_anki/imgs/{icon}.png"
|
iconstr = f"/_anki/imgs/{icon}.png"
|
||||||
imgelm = f"""<img class="topbut" src="{iconstr}">"""
|
imgelm = f'<img class="topbut" src="{iconstr}">'
|
||||||
else:
|
else:
|
||||||
imgelm = ""
|
imgelm = ""
|
||||||
if label or not imgelm:
|
if label or not imgelm:
|
||||||
|
|
Loading…
Reference in a new issue