nothing, so it's now turned on in the provided config file. The
mxtidy_args hook is now called tidy_args.
+Allow template variables to start with an underscore (patch from Oberon
+Faelord).
+
- rawdog 2.12
Make rawdog work with Python 2.6 (reported by Roy Lanek).
"""Convert a string to HTML."""
return sanitise_html(cgi.escape(s), "", True, config)
-template_re = re.compile(r'(__.*?__)')
+template_re = re.compile(r'(__[^_].*?__)')
def fill_template(template, bits):
"""Expand a template, replacing __x__ with bits["x"], and only
including sections bracketed by __if_x__ .. [__else__ ..]