Skip to content

Commit

Permalink
Merge pull request #594 from sul-dlss/abstract-display
Browse files Browse the repository at this point in the history
Apply upstream mods_display formatting for abstracts + contents
  • Loading branch information
thatbudakguy authored Jul 6, 2022
2 parents b80ff91 + 2542575 commit 846dc4c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/helpers/application_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ def with_copyright_symbol(str)
end

def format_mods_content(values)
text = h values.join("\n\n").gsub('
', "\n")
text = link_urls_and_email(values.join("\n\n").gsub('
', "\n"))

simple_format text, {}, sanitize: false
end
end

0 comments on commit 846dc4c

Please sign in to comment.