From c8551a8cdb8ddc2f66b8e5a5dce22f4f80b2baa9 Mon Sep 17 00:00:00 2001 From: yggverse Date: Wed, 20 Aug 2025 05:24:54 +0300 Subject: [PATCH] add `linebreaksbr` | `safe` filters --- templates/index.html.tera | 2 +- templates/post.html.tera | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/index.html.tera b/templates/index.html.tera index e6d9ee2..cf358a6 100644 --- a/templates/index.html.tera +++ b/templates/index.html.tera @@ -11,7 +11,7 @@ {% for post in posts %}
-

{{ post.message }}

+

{{ post.message | linebreaksbr | safe }}

  • {{ post.time }}
  • diff --git a/templates/post.html.tera b/templates/post.html.tera index ae1145d..52075f0 100644 --- a/templates/post.html.tera +++ b/templates/post.html.tera @@ -2,7 +2,7 @@ {% block content %}
    -

    {{ post.message }}

    +

    {{ post.message | linebreaksbr | safe }}