mirror of
https://github.com/pretix/pretix.git
synced 2026-05-07 15:34:02 +00:00
* Add linebreaks in multiline answers #152 * Use linebreaksbr to prevent <p> tag. #152
This commit is contained in:
committed by
Raphael Michel
parent
5aa7740c45
commit
ae2d551d7d
@@ -183,7 +183,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% for q in line.questions %}
|
{% for q in line.questions %}
|
||||||
<dt>{{ q.question }}</dt>
|
<dt>{{ q.question }}</dt>
|
||||||
<dd>{% if q.answer %}{{ q.answer }}{% else %}
|
<dd>{% if q.answer %}{{ q.answer|linebreaksbr }}{% else %}
|
||||||
<em>{% trans "not answered" %}</em>{% endif %}</dd>
|
<em>{% trans "not answered" %}</em>{% endif %}</dd>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</dl>
|
</dl>
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% for q in line.questions %}
|
{% for q in line.questions %}
|
||||||
<dt>{{ q.question }}</dt>
|
<dt>{{ q.question }}</dt>
|
||||||
<dd>{% if q.answer %}{{ q.answer }}{% else %}<em>{% trans "not answered" %}</em>{% endif %}</dd>
|
<dd>{% if q.answer %}{{ q.answer|linebreaksbr }}{% else %}<em>{% trans "not answered" %}</em>{% endif %}</dd>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</dl>
|
</dl>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
Reference in New Issue
Block a user