From fac360d744b1a8d0618ac1fdf1031b1b84829fb2 Mon Sep 17 00:00:00 2001 From: Julien Baley Date: Mon, 14 Apr 2014 17:21:28 +0100 Subject: [PATCH] Allows smoother transition from old modifier syntax {{a:b:fld}} to new one {{a(b):fld}} --- anki/template/template.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anki/template/template.py b/anki/template/template.py index 33bfd6ea8..9431d30cc 100644 --- a/anki/template/template.py +++ b/anki/template/template.py @@ -192,7 +192,7 @@ class Template(object): else: # hook-based field modifier mod, extra = re.search("^(.*?)(?:\((.*)\))?$", mod).groups() - txt = runFilter('fmod_' + mod, txt or '', extra, context, + txt = runFilter('fmod_' + mod, txt or '', extra or '', context, tag, tag_name); if txt is None: return '{unknown field %s}' % tag_name