From ae2d551d7ddd44eb1b24b13d7eb3fce5af4beb17 Mon Sep 17 00:00:00 2001 From: FlaviaBastos Date: Thu, 1 Sep 2016 13:48:29 -0600 Subject: [PATCH] Fix #152 -- Linebreak for multiline answers (#224) * Add linebreaks in multiline answers #152 * Use linebreaksbr to prevent

tag. #152 --- src/pretix/control/templates/pretixcontrol/order/index.html | 2 +- .../presale/templates/pretixpresale/event/fragment_cart.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pretix/control/templates/pretixcontrol/order/index.html b/src/pretix/control/templates/pretixcontrol/order/index.html index 73b31dda6e..38f13132e2 100644 --- a/src/pretix/control/templates/pretixcontrol/order/index.html +++ b/src/pretix/control/templates/pretixcontrol/order/index.html @@ -183,7 +183,7 @@ {% endif %} {% for q in line.questions %}

{{ q.question }}
-
{% if q.answer %}{{ q.answer }}{% else %} +
{% if q.answer %}{{ q.answer|linebreaksbr }}{% else %} {% trans "not answered" %}{% endif %}
{% endfor %} diff --git a/src/pretix/presale/templates/pretixpresale/event/fragment_cart.html b/src/pretix/presale/templates/pretixpresale/event/fragment_cart.html index b8583fe6a0..0f185fa1ae 100644 --- a/src/pretix/presale/templates/pretixpresale/event/fragment_cart.html +++ b/src/pretix/presale/templates/pretixpresale/event/fragment_cart.html @@ -18,7 +18,7 @@ {% endif %} {% for q in line.questions %}
{{ q.question }}
-
{% if q.answer %}{{ q.answer }}{% else %}{% trans "not answered" %}{% endif %}
+
{% if q.answer %}{{ q.answer|linebreaksbr }}{% else %}{% trans "not answered" %}{% endif %}
{% endfor %} {% endif %}