From ef92719eebae5070aacb6ff161fbc0a3665fbf36 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 16 Jan 2013 11:28:10 +0900 Subject: [PATCH] Revert "add automatic
back to field references" This reverts commit 05a68488e7cc27c330d81a9768f37eb19294616f. --- anki/collection.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/anki/collection.py b/anki/collection.py index 69860744e..e0c1497e4 100644 --- a/anki/collection.py +++ b/anki/collection.py @@ -492,8 +492,8 @@ where c.nid = n.id and c.id in %s group by nid""" % ids2str(cids)): fields['c%d' % (data[4]+1)] = "1" # render q & a d = dict(id=data[0]) - qfmt = (qfmt or template['qfmt']).replace("}}\n", "}}
") - afmt = (afmt or template['afmt']).replace("}}\n", "}}
") + qfmt = qfmt or template['qfmt'] + afmt = afmt or template['afmt'] for (type, format) in (("q", qfmt), ("a", afmt)): if type == "q": format = format.replace("{{cloze:", "{{cq:%d:" % (