9
0
mirror of https://github.com/donlon/cloudflare-error-page.git synced 2025-12-19 14:59:28 +00:00

py: trim spaces in generated page

This commit is contained in:
Anthony Donlon
2025-11-21 08:57:04 +08:00
parent 665528919b
commit 1e3a1aee62
2 changed files with 19 additions and 17 deletions

View File

@@ -7,7 +7,9 @@ from jinja2 import Environment, PackageLoader, select_autoescape
env = Environment(
loader=PackageLoader("cloudflare_error_page"),
autoescape=select_autoescape()
autoescape=select_autoescape(),
trim_blocks=True,
lstrip_blocks=True,
)