mirror of
https://github.com/ankitects/anki.git
synced 2025-11-11 07:07:13 -05:00
don't hide hr in preview when not type answer card
This commit is contained in:
parent
56b0908bb1
commit
6eada1e7c4
1 changed files with 2 additions and 0 deletions
|
|
@ -236,6 +236,8 @@ Please create a new card type first."""))
|
||||||
self.playedAudio[c.id] = True
|
self.playedAudio[c.id] = True
|
||||||
|
|
||||||
def maybeTextInput(self, txt, type='q'):
|
def maybeTextInput(self, txt, type='q'):
|
||||||
|
if "[[type:" not in txt:
|
||||||
|
return txt
|
||||||
origLen = len(txt)
|
origLen = len(txt)
|
||||||
txt = txt.replace("<hr id=answer>", "")
|
txt = txt.replace("<hr id=answer>", "")
|
||||||
hadHR = origLen != len(txt)
|
hadHR = origLen != len(txt)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue