lib/rpub/epub/toc.rb in rpub-0.2.0 vs lib/rpub/epub/toc.rb in rpub-0.2.1
- old
+ new
@@ -19,10 +19,10 @@
xml.meta :name => 'dtb:maxPageNumber', :content => '0'
end
xml.docTitle { xml.text book.title }
xml.navMap do
book.chapters.each_with_index do |chapter, n|
- xml.navPoint :id => chapter.id, :playOrder => n do
+ xml.navPoint :id => chapter.xml_id, :playOrder => n do
xml.navLabel { xml.text chapter.title }
xml.content :src => chapter.filename
end
end
end