From a6fd8632a6e290e22ccafa56dc47e20c52e18706 Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Sat, 16 Jul 2022 08:07:58 +0200 Subject: [PATCH] Tweak Jinja config --- app/templates.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/templates.py b/app/templates.py index 8ef484a..f09f31d 100644 --- a/app/templates.py +++ b/app/templates.py @@ -35,7 +35,11 @@ from app.utils.datetime import now from app.utils.highlight import HIGHLIGHT_CSS from app.utils.highlight import highlight -_templates = Jinja2Templates(directory="app/templates") +_templates = Jinja2Templates( + directory="app/templates", + trim_blocks=True, + lstrip_blocks=True, +) H2T = html2text.HTML2Text()