diff --git a/nyaa/templates/view.html b/nyaa/templates/view.html index 954f346..6496eb9 100644 --- a/nyaa/templates/view.html +++ b/nyaa/templates/view.html @@ -60,7 +60,8 @@
{% if torrent.description %} - {{ torrent.description | escape }} + {# Escape newlines into html entities because CF strips blank newlines #} + {{ torrent.description | escape | replace('\r\n', '\n') | replace('\n', ' '|safe) }} {% else %} #### No description. {% endif%}