tolerate html-commented type answer field (#599)

This commit is contained in:
Damien Elmes 2013-04-11 16:55:24 +09:00
parent 4da1abf86d
commit 872cca14e9

View File

@ -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();")