Add whitespace trim
This commit is contained in:
parent
9c41b3863e
commit
4661b232c2
|
@ -12,6 +12,8 @@ from server.lexicon import get_bp as get_lex_bp
|
||||||
static_root = os.path.abspath(config.get("static_root"))
|
static_root = os.path.abspath(config.get("static_root"))
|
||||||
app = Flask(__name__, template_folder="../templates", static_folder=static_root)
|
app = Flask(__name__, template_folder="../templates", static_folder=static_root)
|
||||||
app.secret_key = bytes.fromhex(config.get('secret_key'))
|
app.secret_key = bytes.fromhex(config.get('secret_key'))
|
||||||
|
app.jinja_options['trim_blocks'] = True
|
||||||
|
app.jinja_options['lstrip_blocks'] = True
|
||||||
|
|
||||||
# Flask-Login init
|
# Flask-Login init
|
||||||
login = LoginManager(app)
|
login = LoginManager(app)
|
||||||
|
|
Loading…
Reference in New Issue