templates: support line breaks in event description (#54074)

This commit is contained in:
Valentin Deniaud 2021-05-19 14:01:26 +02:00
parent 045ae53bf1
commit 3bfea3b718
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@
{% if object.description or object.pricing or object.url %}
<div class="section">
<div>
{% if object.description %}<p>{{ object.description }}</p>{% endif %}
{% if object.description %}{{ object.description|linebreaks }}{% endif %}
{% if object.pricing %}<p>{% trans "Pricing:" %} {{ object.pricing }}</p>{% endif %}
{% if object.url %}<p><a href="{{ object.url }}">{{ object.url|truncatechars:100 }}</a></p>{% endif %}
{% if object.publication_date %}<p>{% trans "Publication date:" %} {{ object.publication_date }}</p>{% endif %}