Use the wordwrap filter instead of the fill filter when displaying meeting minutes and similar, to avoid messing up the formatting.

- Legacy-Id: 14060
This commit is contained in:
Henrik Levkowetz 2017-08-21 12:11:17 +00:00
parent 0d4320fcdd
commit 52fe135c53

View file

@ -124,7 +124,7 @@
<h2>{% if doc.meeting_related %}Meeting{% endif %} {{ doc.type.name }}<br><small>{{ doc.name }}</small></h2>
{% if doc.rev and content != None %}
{{ content|fill:"80"|safe|linebreaksbr|keep_spacing|sanitize_html|safe }}
{{ content|wordwrap|safe|linebreaksbr|keep_spacing|sanitize_html|safe }}
{% else %}
<p>Not available as plain text.</p>