app/helpers/application_helper.rb
def not_simple_format(data)
    safe_join(
      data[:value].map do |val|
        val.split('\n\n').map { |para| content_tag(:p, para) }
      end.flatten
    )
  end
# Used in {CatalogController} to render notes and restrictions as
# separate paragraphs
#
# @param [Hash] data
# @return [ActiveSupport::SafeBuffer]
Used in {CatalogController} to render notes and restrictions as
separate paragraphs
Used in { CatalogController } to render notes and restrictions as separate paragraphs
def not_simple_format(data)
    safe_join(
      data[:value].map do |val|
        val.split('\n\n').map { |para| content_tag(:p, para) }
      end.flatten
    )
  end
def not_simple_format ( data ) safe_join ( data [ :value ] . map do | val | val . split ( '\n\n' ) . map { | para | content_tag ( :p , para ) } end . flatten ) end
Used in {CatalogController} to render notes and restrictions as
separate paragraphs
Used in { CatalogController } to render notes and restrictions as separate paragraphs
None
ActiveSupport::SafeBuffer
data
None