From fc8ee29ffddf744bdc853ccd25e5d2dc564c274e Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 4 Jul 2012 21:14:40 +0900 Subject: [PATCH] if user gets type answer wrong, show correct answer Users could previously do that by putting the field in the template, but as so many users think they've hit a bug when they've actually selected the wrong field to compare to, we force the display of the field content instead. --- aqt/reviewer.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/aqt/reviewer.py b/aqt/reviewer.py index 86a3766f1..70f19caa9 100644 --- a/aqt/reviewer.py +++ b/aqt/reviewer.py @@ -375,6 +375,8 @@ Please run Tools>Maintenance>Empty Cards""") given = self.typedAnswer # compare with typed answer res = self.correct(cor, given) + if cor != given: + res += "
" + _("Correct answer was:") + "
" + cor # and update the type answer area return re.sub(self.typeAnsPat, """ %s""" %