mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
fix replacement of other clozes
https://anki.tenderapp.com/discussions/ankidesktop/2904-cloze-deletion-behaves-oddly-instead-of-giving-error-when-single-colon-is-used?mail_type=queue
This commit is contained in:
parent
ed5df2b251
commit
fe0ed4dac9
1 changed files with 1 additions and 1 deletions
|
@ -208,7 +208,7 @@ class Template(object):
|
|||
return "<span class=cloze>%s</span>" % m.group(1)
|
||||
txt = re.sub(reg%ord, repl, txt)
|
||||
# and display other clozes normally
|
||||
return re.sub(reg%".*?", "\\1", txt)
|
||||
return re.sub(reg%"\d+", "\\1", txt)
|
||||
|
||||
@modifier('=')
|
||||
def render_delimiter(self, tag_name=None, context=None):
|
||||
|
|
Loading…
Reference in a new issue