From fabe8572b9a04592658e5d9ec1d96e85ab966a83 Mon Sep 17 00:00:00 2001 From: ospalh Date: Thu, 5 Jul 2012 16:15:17 +0200 Subject: [PATCH] Wrap the "Correct answer was" bit in a span with an id. --- aqt/reviewer.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/aqt/reviewer.py b/aqt/reviewer.py index 70f19caa9..051a5f45f 100644 --- a/aqt/reviewer.py +++ b/aqt/reviewer.py @@ -376,7 +376,9 @@ Please run Tools>Maintenance>Empty Cards""") # compare with typed answer res = self.correct(cor, given) if cor != given: - res += "
" + _("Correct answer was:") + "
" + cor + # Wrap the extra text in an id-ed span. + res += '
{0}
{1}
'.format( + _("Correct answer was:"), cor) # and update the type answer area return re.sub(self.typeAnsPat, """ %s""" %