mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 23:12:21 -04:00
add class to question/answer
This commit is contained in:
parent
845aede221
commit
c9f78cb7b6
1 changed files with 3 additions and 2 deletions
|
@ -113,8 +113,9 @@ class Card(object):
|
|||
self.fuzz = random.uniform(0.95, 1.05)
|
||||
|
||||
def htmlQuestion(self, type="question", align=True):
|
||||
div = '''<div id="cm%s%s">%s</div>''' % (
|
||||
type[0], hexifyID(self.cardModelId), getattr(self, type))
|
||||
div = '''<div class="card%s" id="cm%s%s">%s</div>''' % (
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue