diff --git a/anki/template/template.py b/anki/template/template.py index 0486d15fb..dce750f70 100644 --- a/anki/template/template.py +++ b/anki/template/template.py @@ -199,8 +199,10 @@ class Template(object): return "" # replace chosen cloze with type if type == "q": - if m.group(2): - txt = re.sub(reg%ord, "[\\3...]", txt) + if m.group(3): + txt = re.sub( + reg%ord, "[%s...]" % m.group(3), + txt) else: txt = re.sub(reg%ord, "[...]", txt) elif type == "a":