add #answerStart to default hr so we can scroll to answer

This commit is contained in:
Damien Elmes 2011-12-02 17:25:40 +09:00
parent 4a3b190453
commit dc73ba8e47

View file

@ -12,10 +12,7 @@ from anki.storage import _addSchema, _getColVars, _addColVars, \
_updateIndices _updateIndices
# #
# Upgrading is the first step in migrating to 2.0. The ids are temporary and # Upgrading is the first step in migrating to 2.0.
# may not be unique across multiple decks. After each of a user's v1.2 decks
# are upgraded, they need to be merged via the import code.
#
# Caller should have called check() on path before calling upgrade(). # Caller should have called check() on path before calling upgrade().
# #
@ -412,7 +409,8 @@ order by ordinal""", mid)):
conf[type] += '<br>{{type:%s}}' % typeAns conf[type] += '<br>{{type:%s}}' % typeAns
# q fields now in a # q fields now in a
if not hideq: if not hideq:
conf['afmt'] = conf['qfmt'] + "\n\n<hr>\n\n" + conf['afmt'] conf['afmt'] = (
conf['qfmt'] + "\n\n<hr id=answerStart>\n\n" + conf['afmt'])
tmpls.append(conf) tmpls.append(conf)
return tmpls return tmpls