mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
Fixes creation of Cloze when having a chained modifier on the left of cloze
This commit is contained in:
parent
7dcf0d8ead
commit
69a19b58c2
1 changed files with 1 additions and 1 deletions
|
@ -690,7 +690,7 @@ class Editor(object):
|
|||
|
||||
def onCloze(self):
|
||||
# check that the model is set up for cloze deletion
|
||||
if '{{cloze:' not in self.note.model()['tmpls'][0]['qfmt']:
|
||||
if not re.search('{{(.*:)*cloze:',self.note.model()['tmpls'][0]['qfmt']):
|
||||
if self.addMode:
|
||||
tooltip(_("Warning, cloze deletions will not work until "
|
||||
"you switch the type at the top to Cloze."))
|
||||
|
|
Loading…
Reference in a new issue