Tag Archives: Jinja2

Blank lines in Jinja2 Templates

When working with the Jinja2 templating engine on Python I’ve been bugged by blank lines that got inserted into the resultant XML when an optional node was excluded from the output. ¬†Though Jinja2 sports some support for controlling whitespace I … Continue reading

Posted in Programming, Python | Tagged , | Leave a comment