Validate jinja2 syntax before saving print format