diff --git a/py/LunaTranslator/cishu/jisho.py b/py/LunaTranslator/cishu/jisho.py index 7ddccc7e..8bf902a3 100644 --- a/py/LunaTranslator/cishu/jisho.py +++ b/py/LunaTranslator/cishu/jisho.py @@ -14,13 +14,13 @@ class jisho(cishubase): for title, res in allres: idx += 1 btns.append( - """""".format( - idx=idx, title=title + """""".format( + idx=idx, title=title, klass='' if idx==0 else ' active' ) ) contents.append( - """
{res}
""".format( - idx=idx, res=res + """
{res}
""".format( + idx=idx, res=res,klass='' if idx==0 else ' active' ) ) commonstyle = """ @@ -85,10 +85,6 @@ function onclickbtn_xxxxxx_internal(_id) { - """.format( commonstyle=commonstyle, btns="".join(btns), contents="".join(contents) )