mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
Revert "add automatic <br> back to field references"
This reverts commit 05a68488e7
.
This commit is contained in:
parent
ead1f005ec
commit
ef92719eeb
1 changed files with 2 additions and 2 deletions
|
@ -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:" % (
|
||||||
|
|
Loading…
Reference in a new issue