diff --git a/anki/cards.py b/anki/cards.py index f403c9945..79bd640b0 100644 --- a/anki/cards.py +++ b/anki/cards.py @@ -123,26 +123,3 @@ streak=?, lapses=?, grade=?, cycles=?, edue=? where id = ?""", def timeTaken(self): "Time taken to answer card, in integer MS." return int(min(time.time() - self.timerStarted, MAX_TIMER)*1000) - - # Questions and answers - ########################################################################## - - def htmlQuestion(self, type="question", align=True): - div = '''
%s
''' % ( - type[0], type[0], hexifyID(self.tid), - getattr(self, type)) - # add outer div & alignment (with tables due to qt's html handling) - if not align: - return div - attr = type + 'Align' - if getattr(self.cardModel, attr) == 0: - align = "center" - elif getattr(self.cardModel, attr) == 1: - align = "left" - else: - align = "right" - return (("
" % align) + - div + "
") - - def htmlAnswer(self, align=True): - return self.htmlQuestion(type="answer", align=align)