From 7e5ee957d5f6bf10605239bd669b565ab044d298 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <101191390+HIllya51@users.noreply.github.com> Date: Sat, 18 May 2024 12:44:43 +0800 Subject: [PATCH] card --- LunaTranslator/LunaTranslator/gui/showword.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/LunaTranslator/LunaTranslator/gui/showword.py b/LunaTranslator/LunaTranslator/gui/showword.py index afe4453c..3cf84a98 100644 --- a/LunaTranslator/LunaTranslator/gui/showword.py +++ b/LunaTranslator/LunaTranslator/gui/showword.py @@ -191,7 +191,7 @@ class AnkiWindow(QWidget): fields = self.loadfileds() fields.update(self.loadfakefields()) html = self.parse_template(html, fields) - html = "" + html + html = f'
{html}
' self.htmlbrowser.set_html(html) def creattemplatetab(self): @@ -772,9 +772,10 @@ class searchwordW(closeashidewindow): self.ankiwindow.example.setPlainText(gobject.baseobject.currenttext) self.search(sentence) - if globalconfig['ankiconnect']['autoruntts']: + if globalconfig["ankiconnect"]["autoruntts"]: self.ankiwindow.langdu() self.ankiwindow.langdu2() + def search(self, sentence): if sentence == "": return