mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
experiment with displaying FrontSide under answer
- avoids having to move eyes to answer section - the fade out/fade in step feels more natural when the question section moves feedback welcome
This commit is contained in:
parent
dc81af96ac
commit
a1b0ddb00c
1 changed files with 3 additions and 0 deletions
|
@ -529,6 +529,9 @@ 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)
|
||||||
|
|
Loading…
Reference in a new issue