diff --git a/nyaa/templates/view.html b/nyaa/templates/view.html index 02034b3..91adbda 100644 --- a/nyaa/templates/view.html +++ b/nyaa/templates/view.html @@ -171,12 +171,12 @@
{# Escape newlines into html entities because CF strips blank newlines #} -
{{ comment.text }}
+
{{- comment.text | escape | replace('\r\n', '\n') | replace('\n', ' '|safe) -}}
{% if g.user.id == comment.user_id %}
{{ comment_form.csrf_token }}
- +