mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
make sure we show correct version when nothing typed in
This commit is contained in:
parent
5ec30e6858
commit
c0e061a9f4
1 changed files with 1 additions and 1 deletions
|
@ -389,7 +389,7 @@ Please run Tools>Empty Cards""")
|
||||||
def typeAnsAnswerFilter(self, buf):
|
def typeAnsAnswerFilter(self, buf):
|
||||||
# tell webview to call us back with the input content
|
# tell webview to call us back with the input content
|
||||||
self.web.eval("_getTypedText();")
|
self.web.eval("_getTypedText();")
|
||||||
if not self.typeCorrect or not self.typedAnswer:
|
if not self.typeCorrect:
|
||||||
return re.sub(self.typeAnsPat, "", buf)
|
return re.sub(self.typeAnsPat, "", buf)
|
||||||
origSize = len(buf)
|
origSize = len(buf)
|
||||||
buf = buf.replace("<hr id=answer>", "")
|
buf = buf.replace("<hr id=answer>", "")
|
||||||
|
|
Loading…
Reference in a new issue