mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-12-22 13:14:28 +00:00
Tweak Jinja config
This commit is contained in:
parent
31bf1f66a4
commit
a6fd8632a6
1 changed files with 5 additions and 1 deletions
|
@ -35,7 +35,11 @@ from app.utils.datetime import now
|
||||||
from app.utils.highlight import HIGHLIGHT_CSS
|
from app.utils.highlight import HIGHLIGHT_CSS
|
||||||
from app.utils.highlight import highlight
|
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()
|
H2T = html2text.HTML2Text()
|
||||||
|
|
Loading…
Reference in a new issue