mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -04:00
upgrade tweaks
This commit is contained in:
parent
bd29318168
commit
d903b50d5f
1 changed files with 3 additions and 2 deletions
|
@ -369,7 +369,8 @@ order by ordinal""", mid)):
|
||||||
# ensure data is good
|
# ensure data is good
|
||||||
conf['rtl'] = not not conf['rtl']
|
conf['rtl'] = not not conf['rtl']
|
||||||
conf['font'] = conf['font'] or "Arial"
|
conf['font'] = conf['font'] or "Arial"
|
||||||
conf['size'] = conf['size'] or 20
|
conf['size'] = 12
|
||||||
|
# will be removed later in upgrade
|
||||||
conf['qcol'] = conf['qcol'] or "#000"
|
conf['qcol'] = conf['qcol'] or "#000"
|
||||||
conf['qsize'] = conf['qsize'] or 20
|
conf['qsize'] = conf['qsize'] or 20
|
||||||
flds.append(conf)
|
flds.append(conf)
|
||||||
|
@ -408,7 +409,7 @@ order by ordinal""", mid)):
|
||||||
"(?i){{modelTags}}", "{{Model}}", conf[type])
|
"(?i){{modelTags}}", "{{Model}}", conf[type])
|
||||||
# type answer is now embedded in the format
|
# type answer is now embedded in the format
|
||||||
if typeAns:
|
if typeAns:
|
||||||
conf[type] += '{{type:%s}}' % typeAns
|
conf[type] += '<br>{{type:%s}}' % typeAns
|
||||||
# q fields now in a
|
# q fields now in a
|
||||||
if not hideq:
|
if not hideq:
|
||||||
conf['afmt'] = conf['qfmt'] + "\n\n<hr>\n\n" + conf['afmt']
|
conf['afmt'] = conf['qfmt'] + "\n\n<hr>\n\n" + conf['afmt']
|
||||||
|
|
Loading…
Reference in a new issue