fix detection of multiline cloze deletions

This commit is contained in:
Damien Elmes 2018-06-15 11:24:59 +10:00
parent dfaf9251c3
commit b17946b282

View File

@ -576,7 +576,7 @@ select id from notes where mid = ?)""" % " ".join(map),
continue
ord = map[fname][0]
ords.update([int(m)-1 for m in re.findall(
"{{c(\d+)::.+?}}", sflds[ord])])
"(?s){{c(\d+)::.+?}}", sflds[ord])])
if -1 in ords:
ords.remove(-1)
if not ords and allowEmpty: