Use lstrip_blocks jinja option.

From jinja doc:

    If this is set to True leading spaces and tabs are stripped from the start
    of a line to a block
This commit is contained in:
Simon Conseil
2013-07-19 00:36:09 +02:00
parent b8b624969b
commit eec45c70f8

View File

@@ -74,6 +74,7 @@ class Writer(object):
PrefixLoader({'!default': default_loader}) # explicit one
]),
trim_blocks=True,
lstrip_blocks=True
)
try: