lib/asciidoctor-epub3/converter.rb in asciidoctor-epub3-1.0.0.alpha.3 vs lib/asciidoctor-epub3/converter.rb in asciidoctor-epub3-1.5.0.alpha.4

- old
+ new

@@ -842,10 +842,10 @@ when 'epub3', 'kf8' # all good when 'mobi' document.attributes['ebook-format'] = 'kf8' else - document.attributes['ebook-format'] = 'epub3' + ebook_format = document.attributes['ebook-format'] = 'epub3' end document.attributes[%(ebook-format-#{ebook_format})] = '' # Only fire SpineItemProcessor for top-level include directives include_processor SpineItemProcessor.new(document) treeprocessor { process {|doc| doc.id = DocumentIdGenerator.generate_id doc } }