make sure we show correct version when nothing typed in

This commit is contained in:
Damien Elmes 2013-06-12 11:22:13 +09:00
parent 5ec30e6858
commit c0e061a9f4

View File

@ -389,7 +389,7 @@ Please run Tools>Empty Cards""")
def typeAnsAnswerFilter(self, buf):
# tell webview to call us back with the input content
self.web.eval("_getTypedText();")
if not self.typeCorrect or not self.typedAnswer:
if not self.typeCorrect:
return re.sub(self.typeAnsPat, "", buf)
origSize = len(buf)
buf = buf.replace("<hr id=answer>", "")