From c9f78cb7b67efcc1a31fa1bdbb707b355383bd4c Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Mon, 8 Jun 2009 13:39:17 +0900 Subject: [PATCH] add class to question/answer --- anki/cards.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/anki/cards.py b/anki/cards.py index c974dbabb..8fd2bbcbb 100644 --- a/anki/cards.py +++ b/anki/cards.py @@ -113,8 +113,9 @@ class Card(object): self.fuzz = random.uniform(0.95, 1.05) def htmlQuestion(self, type="question", align=True): - div = '''
%s
''' % ( - type[0], hexifyID(self.cardModelId), getattr(self, type)) + div = '''
%s
''' % ( + type[0], type[0], hexifyID(self.cardModelId), + getattr(self, type)) # add outer div & alignment (with tables due to qt's html handling) if not align: return div