From 4406e7cb8fcdb36d7410b68cecda2912c03900dd Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 8 Apr 2024 17:27:45 -0400 Subject: [PATCH] render new line in comment --- catalog/templates/_item_comments.html | 2 +- catalog/templates/_item_comments_by_episode.html | 2 +- journal/models/renderers.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/catalog/templates/_item_comments.html b/catalog/templates/_item_comments.html index 2facef2a..8dab0d1e 100644 --- a/catalog/templates/_item_comments.html +++ b/catalog/templates/_item_comments.html @@ -67,7 +67,7 @@ {% if comment.item != item %}{{ comment.item.title }}{% endif %} -
{{ comment.html|safe }}
+
{{ comment.html|safe }}
{% if comment.latest_post %}
{% endif %} {% else %} diff --git a/catalog/templates/_item_comments_by_episode.html b/catalog/templates/_item_comments_by_episode.html index 6c4678db..d26ed8af 100644 --- a/catalog/templates/_item_comments_by_episode.html +++ b/catalog/templates/_item_comments_by_episode.html @@ -72,7 +72,7 @@ {% if comment.focus_item %}{{ comment.focus_item.title }}{% endif %} {% if comment.item != item %}{{ comment.item.title }}{% endif %} -
{{ comment.html|safe }}
+
{{ comment.html|safe }}
{% else %} str: def render_text(s: str) -> str: - return _spolier(s) + return _spolier(s).strip().replace("\n", "
")