diff --git a/nyaa/static/css/main.css b/nyaa/static/css/main.css index f314f6e..839883d 100644 --- a/nyaa/static/css/main.css +++ b/nyaa/static/css/main.css @@ -293,6 +293,11 @@ a.text-purple:hover, a.text-purple:active, a.text-purple:focus { margin-bottom: 10px; } +/* workaround for Mozilla whitespace copypaste dumbfuckery */ +.comment-body { + -moz-user-select: text; +} + .comment-content { overflow-wrap: break-word; } diff --git a/nyaa/templates/view.html b/nyaa/templates/view.html index e7cb93e..bf32c33 100644 --- a/nyaa/templates/view.html +++ b/nyaa/templates/view.html @@ -174,7 +174,7 @@ {% endif %} -
+
{# Escape newlines into html entities because CF strips blank newlines #}
{{- comment.text | escape | replace('\r\n', '\n') | replace('\n', ' '|safe) -}}
{% if g.user.id == comment.user_id and comment_form %}