From 4661b232c224d1acb8aaf1462526295d6d1036f8 Mon Sep 17 00:00:00 2001 From: Tim Van Baak Date: Wed, 22 Jan 2020 17:15:39 -0800 Subject: [PATCH] Add whitespace trim --- amanuensis/server/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/amanuensis/server/__init__.py b/amanuensis/server/__init__.py index aad1413..668664f 100644 --- a/amanuensis/server/__init__.py +++ b/amanuensis/server/__init__.py @@ -12,6 +12,8 @@ from server.lexicon import get_bp as get_lex_bp static_root = os.path.abspath(config.get("static_root")) app = Flask(__name__, template_folder="../templates", static_folder=static_root) app.secret_key = bytes.fromhex(config.get('secret_key')) +app.jinja_options['trim_blocks'] = True +app.jinja_options['lstrip_blocks'] = True # Flask-Login init login = LoginManager(app)