Commit de8ca317 authored by Adam D. Barratt's avatar Adam D. Barratt

point-release-mail: improve setup of custom Jinja filters

Signed-off-by: 's avatarAdam D. Barratt <>
parent 98882d6f
......@@ -124,11 +124,14 @@ def jinja_render(template):
env = Environment (
env.filters['capfirst'] = capfirst
env.filters['wmlescape'] = _escape_for_wml
env.filters['nesteddictsort'] = nesteddictsort
env.filters['parawordwrap'] = parawordwrap
env.filters['lrjust'] = lrjust
filters = {
'capfirst': capfirst,
'lrjust': lrjust,
'nesteddictsort': nesteddictsort,
'parawordwrap': parawordwrap,
'wmlescape': _escape_for_wml,
# The template is a list of lines, but jinja expects a
# single string
t = env.from_string(''.join(template))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment