From 5f890dadc99b9a527c12e0421d6600a66b0d5c5a Mon Sep 17 00:00:00 2001 From: Murtuza Zabuawala Date: Tue, 22 Dec 2015 10:43:24 +0530 Subject: [PATCH] Remove any unwanted white-spaces while renderting any template in template code --- web/pgadmin/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/pgadmin/__init__.py b/web/pgadmin/__init__.py index 0b5273504..890aff51b 100644 --- a/web/pgadmin/__init__.py +++ b/web/pgadmin/__init__.py @@ -95,6 +95,8 @@ def create_app(app_name=config.APP_NAME): """Create the Flask application, startup logging and dynamically load additional modules (blueprints) that are found in this directory.""" app = PgAdmin(__name__, static_url_path='/static') + # Removes unwanted whitespace from render_template function + app.jinja_env.trim_blocks = True app.config.from_object(config) ##########################################################################