add a filter for formatQA()

This commit is contained in:
Damien Elmes 2009-07-04 15:40:42 +09:00
parent 0d0b9fc81e
commit 1d5ee36314

View file

@ -19,6 +19,7 @@ from anki.utils import genID, canonifyTags
from anki.fonts import toPlatformFont
from anki.utils import parseTags, hexifyID, checksum
from anki.lang import _
from anki.hooks import runFilter
from copy import copy
def alignmentLabels():
@ -151,7 +152,7 @@ def formatQA(cid, mid, fact, tags, cm):
html = format % fields
except (KeyError, TypeError, ValueError):
html = _("[invalid question/answer format]")
d[type] = html
d[type] = runFilter("formatQA", html, type, cid, mid, fact, tags, cm)
return d
# Model table