aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-04-09 18:28:50 -0700
committerBryan Newbold <bnewbold@archive.org>2020-04-09 18:28:50 -0700
commitec6789c863ed0dd25111b362f225195975147723 (patch)
treec6ea6f41dd01837fceb432575534157b824f151c
parent807a0d3481f725a4fab81b84f6e7053bde5ef797 (diff)
downloadfatcat-covid19-ec6789c863ed0dd25111b362f225195975147723.tar.gz
fatcat-covid19-ec6789c863ed0dd25111b362f225195975147723.zip
clean up jinja2 template whitespace in HTML output
-rw-r--r--fatcat_covid19/webface.py4
1 files changed, 4 insertions, 0 deletions
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__)