Revert "experiment with displaying FrontSide under answer"

This reverts commit a1b0ddb00c.
This commit is contained in:
Damien Elmes 2017-08-10 15:04:24 +10:00
parent c668efa4b4
commit 82aeb57318

View File

@ -529,9 +529,6 @@ where c.nid = n.id and c.id in %s group by nid""" % ids2str(cids)):
format = re.sub("{{(.*?)cloze:", r"{{\1ca-%d:" % (data[4]+1), format) format = re.sub("{{(.*?)cloze:", r"{{\1ca-%d:" % (data[4]+1), format)
format = format.replace("<%cloze:", "<%%ca:%d:" % ( format = format.replace("<%cloze:", "<%%ca:%d:" % (
data[4]+1)) data[4]+1))
format = re.sub(r"^{{FrontSide}}\s*?<hr id=answer>(.*)$",
"\\1<hr>{{FrontSide}}",
format, flags=re.DOTALL)
fields['FrontSide'] = stripSounds(d['q']) fields['FrontSide'] = stripSounds(d['q'])
fields = runFilter("mungeFields", fields, model, data, self) fields = runFilter("mungeFields", fields, model, data, self)
html = anki.template.render(format, fields) html = anki.template.render(format, fields)