mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
allow } inside cloze deletions
This commit is contained in:
parent
fec37958f4
commit
4b01c3c82c
1 changed files with 1 additions and 1 deletions
|
@ -541,7 +541,7 @@ select id from notes where mid = ?)""" % " ".join(map),
|
||||||
continue
|
continue
|
||||||
ord = map[fname][0]
|
ord = map[fname][0]
|
||||||
ords.update([int(m)-1 for m in re.findall(
|
ords.update([int(m)-1 for m in re.findall(
|
||||||
"{{c(\d+)::[^}]*?}}", sflds[ord])])
|
"{{c(\d+)::.+?}}", sflds[ord])])
|
||||||
if -1 in ords:
|
if -1 in ords:
|
||||||
ords.remove(-1)
|
ords.remove(-1)
|
||||||
if not ords and allowEmpty:
|
if not ords and allowEmpty:
|
||||||
|
|
Loading…
Reference in a new issue