render new line in comment
This commit is contained in:
parent
d868c2184f
commit
4406e7cb8f
3 changed files with 3 additions and 3 deletions
|
@ -67,7 +67,7 @@
|
|||
</span>
|
||||
</span>
|
||||
{% if comment.item != item %}<a href="{{ comment.item_url }}">{{ comment.item.title }}</a>{% endif %}
|
||||
<div>{{ comment.html|safe }}</div>
|
||||
<div class="tldr" _="on click toggle .tldr on me">{{ comment.html|safe }}</div>
|
||||
{% if comment.latest_post %}<div id="replies_{{ comment.latest_post.pk }}"></div>{% endif %}
|
||||
</section>
|
||||
{% else %}
|
||||
|
|
|
@ -72,7 +72,7 @@
|
|||
</span>
|
||||
{% if comment.focus_item %}<a href="{{ comment.focus_item.url }}">{{ comment.focus_item.title }}</a>{% endif %}
|
||||
{% if comment.item != item %}<a href="{{ comment.item.url }}">{{ comment.item.title }}</a>{% endif %}
|
||||
<div>{{ comment.html|safe }}</div>
|
||||
<div class="tldr" _="on click toggle .tldr on me">{{ comment.html|safe }}</div>
|
||||
</section>
|
||||
{% else %}
|
||||
<a hx-get="{% url "catalog:comments_by_episode" item.url_path item.uuid %}?episode_uuid={{ episode_uuid }}&last={{ comment.created_time|date:'Y-m-d H:i:s.uO'|urlencode }}"
|
||||
|
|
|
@ -49,4 +49,4 @@ def _spolier(s: str) -> str:
|
|||
|
||||
|
||||
def render_text(s: str) -> str:
|
||||
return _spolier(s)
|
||||
return _spolier(s).strip().replace("\n", "<br>")
|
||||
|
|
Loading…
Add table
Reference in a new issue