Validate jinja2 syntax before saving print format
fix print format test case
Merge pull request #920 from pdvyas/validate-jinja-template

Validate jinja2 syntax before saving print format