I\'m using curl to watch the output of my web app. When Flask and Jinja render templates, there\'s a lot of unnecessary white space in the output. It seems to
curl
To collapse whitespace before and after a block:
{%- if form.message -%} //trims before {{ form.message }} {%- endif -%} // trims after