mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 15:02:21 -04:00
preserve old default card-level formatting
This commit is contained in:
parent
0e08092f65
commit
4859778d2c
1 changed files with 11 additions and 18 deletions
|
@ -4337,19 +4337,12 @@ or quizFontFamily is null""")
|
||||||
<span style="font-family: %s; font-size: %spx; color: %s;">%s</span>'''
|
<span style="font-family: %s; font-size: %spx; color: %s;">%s</span>'''
|
||||||
for m in deck.models:
|
for m in deck.models:
|
||||||
for cm in m.cardModels:
|
for cm in m.cardModels:
|
||||||
# embed the old font information into card templates if
|
# embed the old font information into card templates
|
||||||
# it's been customized
|
|
||||||
if (cm.questionFontFamily != "Arial" or
|
|
||||||
cm.questionFontSize != 20 or
|
|
||||||
cm.questionFontColour != "#000000"):
|
|
||||||
cm.qformat = txt % (
|
cm.qformat = txt % (
|
||||||
cm.questionFontFamily,
|
cm.questionFontFamily,
|
||||||
cm.questionFontSize,
|
cm.questionFontSize,
|
||||||
cm.questionFontColour,
|
cm.questionFontColour,
|
||||||
cm.qformat)
|
cm.qformat)
|
||||||
if (cm.answerFontFamily != "Arial" or
|
|
||||||
cm.answerFontSize != 20 or
|
|
||||||
cm.answerFontColour != "#000000"):
|
|
||||||
cm.aformat = txt % (
|
cm.aformat = txt % (
|
||||||
cm.answerFontFamily,
|
cm.answerFontFamily,
|
||||||
cm.answerFontSize,
|
cm.answerFontSize,
|
||||||
|
|
Loading…
Reference in a new issue