facts: handle line breaks in view display of fact
This commit is contained in:
parent
a4d51b1f2c
commit
f608c5ab68
|
@ -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 %}
|
||||
|
|
Loading…
Reference in New Issue