mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 06:52:21 -04:00
Fix unicode/ascii issue.
This commit is contained in:
parent
fa818afedd
commit
95a7765e01
1 changed files with 2 additions and 2 deletions
|
@ -375,8 +375,8 @@ Please run Tools>Maintenance>Empty Cards""")
|
|||
res = self.correct(cor, given)
|
||||
if cor != given:
|
||||
# Wrap the extra text in an id-ed span.
|
||||
res += '<span id=rightanswer><br> {0} <br> {1} </span>'.format(
|
||||
_("Correct answer was:"), cor)
|
||||
res += u"<span id=rightanswer><br> {0} <br> {1} </span>".format(
|
||||
_(u"Correct answer was:"), cor)
|
||||
# and update the type answer area
|
||||
return re.sub(self.typeAnsPat, """
|
||||
<span style="font-family: '%s'; font-size: %spx">%s</span>""" %
|
||||
|
|
Loading…
Reference in a new issue