lib/epubmaker/epubcommon.rb in review-3.1.0 vs lib/epubmaker/epubcommon.rb in review-3.2.0

- old
+ new

@@ -34,13 +34,12 @@ def opf_coverimage s = '' if @producer.config['coverimage'] file = nil @producer.contents.each do |item| - if !item.media.start_with?('image') || item.file !~ /#{@producer.config["coverimage"]}\Z/ + if !item.media.start_with?('image') || item.file !~ /#{@producer.config['coverimage']}\Z/ next end - s << %Q( <meta name="cover" content="#{item.id}"/>\n) file = item.file break end