From 44ba0fd5f99d1be2dd7c628b2951b20c5719d100 Mon Sep 17 00:00:00 2001
From: Fredrik Jonsson <frjo@xdeb.org>
Date: Wed, 17 Oct 2018 16:03:17 +0200
Subject: [PATCH] Use linebreaksbr for field erros somultible errors are
 displayed on seperate lines.

---
 opentech/apply/templates/forms/includes/field.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/opentech/apply/templates/forms/includes/field.html b/opentech/apply/templates/forms/includes/field.html
index b4e71892f..7881e54e1 100644
--- a/opentech/apply/templates/forms/includes/field.html
+++ b/opentech/apply/templates/forms/includes/field.html
@@ -31,7 +31,7 @@
 
         {{ field }}
 
-        {% if field.errors %}<h6 class="form__error-text">{{ field.errors.as_text }}</h6>{% endif %}
+        {% if field.errors %}<h6 class="form__error-text">{{ field.errors.as_text|linebreaksbr }}</h6>{% endif %}
         <label for="{{ field.id_for_label }}"></label>
         {% if widget_type == 'date_input' or widget_type == 'date_time_input' %}
             </div>
-- 
GitLab