diff --git a/anki/collection.py b/anki/collection.py index da0fd0e08..7d07bd0ef 100644 --- a/anki/collection.py +++ b/anki/collection.py @@ -498,9 +498,13 @@ where c.nid = n.id and c.id in %s group by nid""" % ids2str(cids)): if type == "q": format = format.replace("{{cloze:", "{{cq:%d:" % ( data[4]+1)) + format = format.replace("<%cloze:", "<%%cq:%d:" % ( + data[4]+1)) else: format = format.replace("{{cloze:", "{{ca:%d:" % ( data[4]+1)) + format = format.replace("<%cloze:", "<%%ca:%d:" % ( + data[4]+1)) fields['FrontSide'] = stripSounds(d['q']) fields = runFilter("mungeFields", fields, model, data, self) html = anki.template.render(format, fields) diff --git a/anki/models.py b/anki/models.py index 6e8ea5fe3..870be3724 100644 --- a/anki/models.py +++ b/anki/models.py @@ -549,7 +549,9 @@ select id from notes where mid = ?)""" % " ".join(map), sflds = splitFields(flds) map = self.fieldMap(m) ords = set() - for fname in re.findall("{{cloze:(.+?)}}", m['tmpls'][0]['qfmt']): + matches = re.findall("{{cloze:(.+?)}}", m['tmpls'][0]['qfmt']) + matches += re.findall("<%cloze:(.+?)%>", m['tmpls'][0]['qfmt']) + for fname in matches: if fname not in map: continue ord = map[fname][0] diff --git a/aqt/about.py b/aqt/about.py index 59e6f11fb..b63ee4fc1 100644 --- a/aqt/about.py +++ b/aqt/about.py @@ -28,7 +28,7 @@ Matthew Duggan, Matthew Holtz, Meelis Vasser, Michael Keppler, Michael Montague, Michael Penkov, Michal Čadil, Nathanael Law, Nick Cook, Niklas Laxström, Nguyễn Hào Khôi, Norbert Nagold, Ole Guldberg, Pcsl88, Petr Michalec, Piotr Kubowicz, Richard Colley, Roland Sieker, -Samson Melamed, Stefaan De Pooter, Susanna Björverud, Sylvain Durand, +Samson Melamed, Stefaan De Pooter, Silja Ijas, Susanna Björverud, Sylvain Durand, Tacutu, Timm Preetz, Timo Paulssen, Ursus, Victor Suba, %s Xtru."""% _(" and")} abouttext += '
' + _("""\