fix error when opening card layout

This commit is contained in:
Damien Elmes 2013-06-07 09:51:26 +09:00
parent adaf951a5a
commit dbd60dba4b

View File

@ -242,7 +242,7 @@ Please create a new card type first."""))
txt = txt.replace("<hr id=answer>", "")
hadHR = origLen != len(txt)
def answerRepl(match):
res = self.mw.reviewer.correct("exomple", "an example")
res = self.mw.reviewer.correct(u"exomple", u"an example")
if hadHR:
res = "<hr id=answer>" + res
return res