summaryrefslogtreecommitdiffstats
path: root/python/fatcat_web/__init__.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-03-07 11:09:02 -0800
committerBryan Newbold <bnewbold@robocracy.org>2019-03-07 11:09:02 -0800
commitb7c189d3d6912c91874de54d44f6346adc635060 (patch)
tree737614edaa46fc3de52cabc9c9d419db5f453703 /python/fatcat_web/__init__.py
parent49ac34c2b23ce586c19630999af9f72a976aa7df (diff)
downloadfatcat-b7c189d3d6912c91874de54d44f6346adc635060.tar.gz
fatcat-b7c189d3d6912c91874de54d44f6346adc635060.zip
clean up HTML whitespace
Diffstat (limited to 'python/fatcat_web/__init__.py')
-rw-r--r--python/fatcat_web/__init__.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/python/fatcat_web/__init__.py b/python/fatcat_web/__init__.py
index 1ad278ba..e80393c2 100644
--- a/python/fatcat_web/__init__.py
+++ b/python/fatcat_web/__init__.py
@@ -28,6 +28,10 @@ conf = fatcat_client.Configuration()
conf.host = Config.FATCAT_API_HOST
api = fatcat_client.DefaultApi(fatcat_client.ApiClient(conf))
+# remove most jinja2 template whitespace
+app.jinja_env.trim_blocks = True
+app.jinja_env.lstrip_blocks = True
+
def auth_api(token):
conf = fatcat_client.Configuration()
conf.api_key["Authorization"] = token