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