revert to % format string to avoid breaking add-on

partially reverts d8c3e71105

https://forums.ankiweb.net/t/anki-2-1-45-beta/10664/50
This commit is contained in:
Damien Elmes 2021-06-26 08:39:16 +10:00
parent fb5e8d5f3b
commit 7099b6ea49

View file

@ -80,7 +80,7 @@ audio = (
_html = """
<div id="fields"></div>
<div id="dupes" class="is-inactive">
<a href="#" onclick="pycmd('dupes');return false;">{}</a>
<a href="#" onclick="pycmd('dupes');return false;">%s</a>
</div>
<div id="cloze-hint"></div>
"""
@ -131,7 +131,7 @@ class Editor:
# then load page
self.web.stdHtml(
_html.format(tr.editing_show_duplicates()),
_html % tr.editing_show_duplicates(),
css=[
"css/editor.css",
],