From 872cca14e947998461db96dc8deb0346805fa470 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 11 Apr 2013 16:55:24 +0900 Subject: [PATCH] tolerate html-commented type answer field (#599) --- aqt/reviewer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aqt/reviewer.py b/aqt/reviewer.py index 096d80b36..6916d2527 100644 --- a/aqt/reviewer.py +++ b/aqt/reviewer.py @@ -377,7 +377,7 @@ Please run Tools>Maintenance>Empty Cards""") """ % (self.typeFont, self.typeSize), buf) def typeAnsAnswerFilter(self, buf): - if not self.typeCorrect: + if not self.typeCorrect or not self.typedAnswer: return re.sub(self.typeAnsPat, "", buf) # tell webview to call us back with the input content self.web.eval("_getTypedText();")