mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
fix: add keep_trailing_newline option to FileSystemLoader in Templator
This commit is contained in:
parent
6b233f7774
commit
9806f0fc72
1 changed files with 1 additions and 0 deletions
|
|
@ -96,6 +96,7 @@ class Templator:
|
|||
loader=FileSystemLoader(searchpath=searchpath),
|
||||
lstrip_blocks=True,
|
||||
trim_blocks=True,
|
||||
keep_trailing_newline=True,
|
||||
)
|
||||
|
||||
def _find_templates(self, contexts: List[str]) -> List[str]:
|
||||
|
|
|
|||
Loading…
Reference in a new issue