From 6eada1e7c4df4e1472809cf3758989f55e08205a Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 23 May 2013 11:11:25 +0900 Subject: [PATCH] don't hide hr in preview when not type answer card --- aqt/clayout.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/aqt/clayout.py b/aqt/clayout.py index e49d1128a..6c1171cb8 100644 --- a/aqt/clayout.py +++ b/aqt/clayout.py @@ -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("
", "") hadHR = origLen != len(txt)