Skip to content

Commit

Permalink
style: rubocop autocorrects
Browse files Browse the repository at this point in the history
  • Loading branch information
flavorjones committed May 19, 2024
1 parent c214b28 commit bd5ea3a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/rails/html/scrubbers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -209,14 +209,14 @@ def initialize
def scrub(node)
if Loofah::Elements::LINEBREAKERS.include?(node.name)
replacement = if Loofah::Elements::INLINE_LINE_BREAK.include?(node.name)
" "
else
" #{node.content} "
end
" "
else
" #{node.content} "
end
node.add_next_sibling(Nokogiri::XML::Text.new(replacement, node.document))
node.remove
elsif node.text?
return CONTINUE
CONTINUE
else
node.before node.children
node.remove
Expand Down

0 comments on commit bd5ea3a

Please sign in to comment.