Skip to content

Commit

Permalink
include coverimage file implicitly when verify_target_images is enabl…
Browse files Browse the repository at this point in the history
…ed. Closes: #1918
  • Loading branch information
kmuto committed Aug 16, 2024
1 parent 378d1dc commit 4a497eb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/review/epubmaker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,11 @@ def verify_target_images(basetmpdir)
end
end
end

if @config['coverimage']
@config['epubmaker']['force_include_images'].push(File.join(@config['imagedir'], @config['coverimage']))
end

@config['epubmaker']['force_include_images'] = @config['epubmaker']['force_include_images'].compact.sort.uniq
end

Expand Down

0 comments on commit 4a497eb

Please sign in to comment.