From c79f2739311d3baeda861cb5ad6ec00577ce67c0 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Mon, 14 May 2012 05:29:55 +0900 Subject: [PATCH] fix type answer preview in answer area --- aqt/clayout.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/aqt/clayout.py b/aqt/clayout.py index c2ec50c4b..37875917d 100644 --- a/aqt/clayout.py +++ b/aqt/clayout.py @@ -209,7 +209,7 @@ Please create a new card type first.""")) ti(mungeQA(c.q(reload=True))), self.mw.reviewer._styles(), bodyClass="card card%d" % (c.ord+1), head=base) self.tab['pform'].backWeb.stdHtml( - ti(mungeQA(c.a())), self.mw.reviewer._styles(), + ti(mungeQA(c.a()), type='a'), self.mw.reviewer._styles(), bodyClass="card card%d" % (c.ord+1), head=base) clearAudioQueue() if c.id not in self.playedAudio: @@ -219,10 +219,11 @@ Please create a new card type first.""")) def maybeTextInput(self, txt, type='q'): if type == 'q': - repl = "
" % _( + repl = "
" % _( "(text is typed in here)") else: repl = _("(typing comparison appears here)") + repl = "%s" % repl return re.sub("\[\[type:.+?\]\]", repl, txt) # Card operations