Skip to content

Commit

Permalink
follow rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
kmuto committed Nov 17, 2024
1 parent b4f6d91 commit e49763f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/review/epubmaker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ def verify_target_images(basetmpdir)
unless File.exist?(File.join(basetmpdir, content.file))
next
end

File.open(File.join(basetmpdir, content.file)) do |f|
REXML::Document.new(File.new(f)).each_element('//img') do |e|
@config['epubmaker']['force_include_images'].push(e.attributes['src'])
Expand All @@ -217,6 +218,7 @@ def verify_target_images(basetmpdir)
unless File.exist?(File.join(basetmpdir, content.file))
next
end

File.open(File.join(basetmpdir, content.file)) do |f|
f.each_line do |l|
l.scan(/url\((.+?)\)/) do |_m|
Expand Down

0 comments on commit e49763f

Please sign in to comment.