X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/6bc4b207315992645292c7b3bfc0cfbef87c152f..dc60d78cdabc06b3c2fe8cb923125a01fa6b3da6:/lib/rich_text.rb?ds=sidebyside diff --git a/lib/rich_text.rb b/lib/rich_text.rb index bdf9c37ca..84e695c6e 100644 --- a/lib/rich_text.rb +++ b/lib/rich_text.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module RichText SPAMMY_PHRASES = [ "Business Description:", "Additional Keywords:" @@ -144,7 +146,7 @@ module RichText end def truncated_text_content(element) - text = "" + text = +"" append_text = lambda do |child| if child.type == :text