From ec6789c863ed0dd25111b362f225195975147723 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 9 Apr 2020 18:28:50 -0700 Subject: clean up jinja2 template whitespace in HTML output --- fatcat_covid19/webface.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fatcat_covid19/webface.py b/fatcat_covid19/webface.py index c8e2064..37eb464 100644 --- a/fatcat_covid19/webface.py +++ b/fatcat_covid19/webface.py @@ -52,6 +52,10 @@ app.log = create_logger(app) babel = Babel(app) app.es_client = elasticsearch.Elasticsearch(app.config['ELASTICSEARCH_BACKEND']) +# remove most jinja2 template whitespace +app.jinja_env.trim_blocks = True +app.jinja_env.lstrip_blocks = True + from fatcat_covid19.search import * bp = Blueprint('search', __name__) -- cgit v1.2.3