From eabc24b43219c6699c13a1d388a7bb8b474e7e2c Mon Sep 17 00:00:00 2001 From: Mathieu Magnin Date: Wed, 25 Oct 2017 15:36:42 +0200 Subject: [PATCH] Print champ description with simple format to display line breaks --- .../users/description/champs/_render_list_champs.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/users/description/champs/_render_list_champs.html.haml b/app/views/users/description/champs/_render_list_champs.html.haml index 755f5f537..90166f362 100644 --- a/app/views/users/description/champs/_render_list_champs.html.haml +++ b/app/views/users/description/champs/_render_list_champs.html.haml @@ -60,4 +60,4 @@ - unless champ.description.empty? %div{ id: "description_champs_#{champ.id}", class: ('help-block' unless champ.type_champ == 'engagement') } - = sanitize(champ.description_with_links, attributes: %w(href target)) + = simple_format(sanitize(champ.description_with_links, attributes: %w(href target)))