Damien Elmes 2013-09-16 13:28:10 +09:00
parent ed5df2b251
commit fe0ed4dac9

View file

@ -208,7 +208,7 @@ class Template(object):
return "<span class=cloze>%s</span>" % m.group(1) return "<span class=cloze>%s</span>" % m.group(1)
txt = re.sub(reg%ord, repl, txt) txt = re.sub(reg%ord, repl, txt)
# and display other clozes normally # and display other clozes normally
return re.sub(reg%".*?", "\\1", txt) return re.sub(reg%"\d+", "\\1", txt)
@modifier('=') @modifier('=')
def render_delimiter(self, tag_name=None, context=None): def render_delimiter(self, tag_name=None, context=None):