diff --git a/py/LunaTranslator/cishu/mdict.py b/py/LunaTranslator/cishu/mdict.py index 0663c1d0..c3ab1912 100644 --- a/py/LunaTranslator/cishu/mdict.py +++ b/py/LunaTranslator/cishu/mdict.py @@ -2608,14 +2608,14 @@ if (content.style.display === 'block') { extra = "display: none;" uid = str(uuid.uuid4()) lis.append( - rf"""
  • {title}
    - {res} -
  • """ + r"""
  • {}
    + {} +
  • """.format(uid,uid,title,extra,res) ) - content += rf""" + content += r""" """ + {} + """.format(''.join(lis)) return content diff --git a/py/LunaTranslator/gui/setting_about.py b/py/LunaTranslator/gui/setting_about.py index daeabfea..04ff478a 100644 --- a/py/LunaTranslator/gui/setting_about.py +++ b/py/LunaTranslator/gui/setting_about.py @@ -78,12 +78,13 @@ def doupdate(): bit = "_x86" _6432 = "32" shutil.copy( - rf".\files\plugins\shareddllproxy{_6432}.exe", + r".\files\plugins\shareddllproxy{}.exe".format(_6432), gobject.getcachedir("Updater.exe"), ) subprocess.Popen( - rf".\cache\Updater.exe update {int(gobject.baseobject.istriggertoupdate)} .\cache\update\LunaTranslator{bit} " - + dynamiclink("{main_server}") + r".\cache\Updater.exe update {} .\cache\update\LunaTranslator{} {}".format( + int(gobject.baseobject.istriggertoupdate), bit, dynamiclink("{main_server}") + ) )