lib/epubmaker/epubv2.rb in review-3.1.0 vs lib/epubmaker/epubv2.rb in review-3.2.0
- old
+ new
@@ -37,10 +37,10 @@
%w[title language date type format source description relation coverage subject rights].each do |item|
next unless @producer.config[item]
if @producer.config[item].is_a?(Array)
s << @producer.config.names_of(item).map { |i| %Q( <dc:#{item}>#{CGI.escapeHTML(i)}</dc:#{item}>\n) }.join
else
- s << %Q( <dc:#{item}>#{CGI.escapeHTML(@producer.config.name_of(item))}</dc:#{item}>\n)
+ s << %Q( <dc:#{item}>#{CGI.escapeHTML(@producer.config.name_of(item).to_s)}</dc:#{item}>\n)
end
end
# ID
if @producer.config['isbn'].nil?