mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
Merge branch 'master' of https://github.com/dae/anki
This commit is contained in:
commit
a430803774
2 changed files with 5 additions and 0 deletions
|
@ -700,6 +700,7 @@ select id from notes where mid not in """ + ids2str(self.models.ids()))
|
|||
if t['did'] == "None":
|
||||
t['did'] = None
|
||||
problems.append(_("Fixed AnkiDroid deck override bug."))
|
||||
self.models.save(m)
|
||||
if m['type'] == MODEL_STD:
|
||||
# model with missing req specification
|
||||
if 'req' not in m:
|
||||
|
|
|
@ -331,6 +331,10 @@ def mungeQA(col, txt):
|
|||
txt = stripSounds(txt)
|
||||
# osx webkit doesn't understand font weight 600
|
||||
txt = re.sub("font-weight: *600", "font-weight:bold", txt)
|
||||
if isMac:
|
||||
# custom fonts cause crashes on osx at the moment
|
||||
txt = txt.replace("font-face", "invalid")
|
||||
|
||||
return txt
|
||||
|
||||
def applyStyles(widget):
|
||||
|
|
Loading…
Reference in a new issue