Remove any unwanted white-spaces while renderting any template in template code
parent
1391003e03
commit
5f890dadc9
|
@ -95,6 +95,8 @@ def create_app(app_name=config.APP_NAME):
|
||||||
"""Create the Flask application, startup logging and dynamically load
|
"""Create the Flask application, startup logging and dynamically load
|
||||||
additional modules (blueprints) that are found in this directory."""
|
additional modules (blueprints) that are found in this directory."""
|
||||||
app = PgAdmin(__name__, static_url_path='/static')
|
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)
|
app.config.from_object(config)
|
||||||
|
|
||||||
##########################################################################
|
##########################################################################
|
||||||
|
|
Loading…
Reference in New Issue