Browse Source

Remove unnecessary line break

pull/484/head
baarkerlounger 3 years ago
parent
commit
bd0ce09917
  1. 2
      app/helpers/details_table_helper.rb

2
app/helpers/details_table_helper.rb

@ -1,7 +1,7 @@
module DetailsTableHelper
def details_html(attribute)
if attribute[:format] == :bullet
list = attribute[:value].map { |la| "<li>#{la}</li>" }.join("\n")
list = attribute[:value].map { |la| "<li>#{la}</li>" }.join
simple_format(list, { class: "govuk-list govuk-list--bullet" }, wrapper_tag: "ul")
else
simple_format(attribute[:value].to_s, {}, wrapper_tag: "div")

Loading…
Cancel
Save