Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
marcandre committed Oct 26, 2016
1 parent 74d651a commit e275d9d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/inky.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@ def release_the_kraken(html_string)
raws, str = Inky::Core.extract_raws(html_string)
parse_cmd = str =~ /<html/i ? :parse : :fragment
html = Nokogiri::HTML.public_send(parse_cmd, str)
html.children.each do |elem|
transform_doc(elem)
end
transform_doc(html)
string = html.to_html(encoding: 'US-ASCII')
Inky::Core.re_inject_raws(string, raws)
end
Expand Down

0 comments on commit e275d9d

Please sign in to comment.