From bbb5e23551fd62d2372f96a9d4187cac276eb059 Mon Sep 17 00:00:00 2001 From: Cqoicebordel Date: Sat, 14 Feb 2015 01:42:06 +0100 Subject: Remove whitespace caused by Jinja commands Adding this conf change will remove every newline created by a Jinja command (`{% %}`). It can save a bit of bandwidth. --- searx/webapp.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'searx/webapp.py') diff --git a/searx/webapp.py b/searx/webapp.py index b12a08db5..13c965e0d 100644 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -81,6 +81,8 @@ app = Flask( template_folder=templates_path ) +app.jinja_env.trim_blocks = True +app.jinja_env.lstrip_blocks = True app.secret_key = settings['server']['secret_key'] babel = Babel(app) -- cgit v1.2.3