Print champ description with simple format to display line breaks

This commit is contained in:
Mathieu Magnin 2017-10-25 15:36:42 +02:00
parent 33bf3d9f63
commit eabc24b432

View file

@ -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)))