Merge pull request #914 from sgmap/simple-format-on-champ-description

Print champ description with simple format to display line breaks
This commit is contained in:
Mathieu Magnin 2017-10-25 15:46:54 +02:00 committed by GitHub
commit c7bbe87f77

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