facts: handle line breaks in view display of fact

This commit is contained in:
Brian S. Stephan 2017-02-11 09:41:29 -06:00
parent a4d51b1f2c
commit f608c5ab68
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@
{% block content %}
<h3>{{ factcategory.name }}</h3>
<p>{{ factcategory.random_fact.fact }}</p>
<p>{{ factcategory.random_fact.fact|linebreaks }}</p>
{% if factcategory.show_all_entries %}
<div class="fact-category-items">Items: {{ facts|join:", " }}</div>
{% endif %}