Revert "add automatic <br> back to field references"

This reverts commit 05a68488e7.
This commit is contained in:
Damien Elmes 2013-01-16 11:28:10 +09:00
parent ead1f005ec
commit ef92719eeb

View file

@ -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" fields['c%d' % (data[4]+1)] = "1"
# render q & a # render q & a
d = dict(id=data[0]) d = dict(id=data[0])
qfmt = (qfmt or template['qfmt']).replace("}}\n", "}}<br>") qfmt = qfmt or template['qfmt']
afmt = (afmt or template['afmt']).replace("}}\n", "}}<br>") afmt = afmt or template['afmt']
for (type, format) in (("q", qfmt), ("a", afmt)): for (type, format) in (("q", qfmt), ("a", afmt)):
if type == "q": if type == "q":
format = format.replace("{{cloze:", "{{cq:%d:" % ( format = format.replace("{{cloze:", "{{cq:%d:" % (