Skip to content

Commit

Permalink
Remove unnecessary explicit receiver in Html2Text.convert
Browse files Browse the repository at this point in the history
This makes subclassing Html2Text easier as `convert` does not have to be
reimplemented.
  • Loading branch information
splattael committed Mar 7, 2023
1 parent 0485f6d commit bb02db4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/html2text.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def self.convert(html)
html = fix_newlines(replace_entities(html))
doc = Nokogiri::HTML(html)

Html2Text.new(doc).convert
new(doc).convert
end

def self.fix_newlines(text)
Expand Down

0 comments on commit bb02db4

Please sign in to comment.