diff --git a/anki/template/template.py b/anki/template/template.py index e70b181f4..7dc157dd9 100644 --- a/anki/template/template.py +++ b/anki/template/template.py @@ -186,7 +186,9 @@ class Template(object): # just the answers ans = re.findall(reg%ord, txt) ans = [""+a[0]+"" for a in ans] - return ", ".join(ans) + ans = ", ".join(ans) + # but we want to preserve the outer field styling + return re.sub("(^)(.*)", "\\1"+ans+"", txt) # and display other clozes normally return re.sub(reg%".*?", "\\1", txt)