Fix #152 -- Linebreak for multiline answers (#224)

* Add linebreaks in multiline answers

#152

* Use linebreaksbr to prevent <p> tag.

#152
This commit is contained in:
FlaviaBastos
2016-09-01 13:48:29 -06:00
committed by Raphael Michel
parent 5aa7740c45
commit ae2d551d7d
2 changed files with 2 additions and 2 deletions

View File

@@ -183,7 +183,7 @@
{% endif %}
{% for q in line.questions %}
<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>
{% endfor %}
</dl>

View File

@@ -18,7 +18,7 @@
{% endif %}
{% for q in line.questions %}
<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 %}
</dl>
{% endif %}