don't hide hr in preview when not type answer card

This commit is contained in:
Damien Elmes 2013-05-23 11:11:25 +09:00
parent 56b0908bb1
commit 6eada1e7c4

View File

@ -236,6 +236,8 @@ Please create a new card type first."""))
self.playedAudio[c.id] = True
def maybeTextInput(self, txt, type='q'):
if "[[type:" not in txt:
return txt
origLen = len(txt)
txt = txt.replace("<hr id=answer>", "")
hadHR = origLen != len(txt)