diff options
Diffstat (limited to 'lib/sisu/v3/epub_format.rb')
-rw-r--r-- | lib/sisu/v3/epub_format.rb | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/sisu/v3/epub_format.rb b/lib/sisu/v3/epub_format.rb index ee5118e2..38717359 100644 --- a/lib/sisu/v3/epub_format.rb +++ b/lib/sisu/v3/epub_format.rb @@ -1398,6 +1398,7 @@ output_epub_cont_seg.close end def navpoint(dob,no,name=nil) name=name ? name : dob.name + cont_name=(name =~/#{Sfx[:epub_xhtml]}/) ? name : (name + Sfx[:epub_xhtml]) id_u=DISABLE[:epub][:ncx_navpoint_unique_id] \ ? '' : "-#{no}" @@ -1406,7 +1407,7 @@ output_epub_cont_seg.close <navLabel> <text>#{dob.obj}</text> </navLabel> - <content src="#{name}#{Sfx[:epub_xhtml]}" /> + <content src="#{cont_name}" /> WOK end def navpoint_close @@ -1592,8 +1593,9 @@ output_epub_cont_seg.close end def manifest_content(dob,name=nil) name=name ? name : dob.name + href_name=(name =~/#{Sfx[:epub_xhtml]}/) ? name : (name + Sfx[:epub_xhtml]) <<-WOK - <item id="#{name}" href="#{name}#{Sfx[:epub_xhtml]}" media-type="application/xhtml+xml" /> + <item id="#{name}" href="#{href_name}" media-type="application/xhtml+xml" /> WOK end def manifest_images(imgs) @@ -1648,8 +1650,9 @@ output_epub_cont_seg.close end def guide(dob,name=nil) name=name ? name : dob.name + guide_name=(name =~/#{Sfx[:epub_xhtml]}/) ? name : (name + Sfx[:epub_xhtml]) <<-WOK - <reference type="text" href="#{name}#{Sfx[:epub_xhtml]}" /> + <reference type="text" href="#{guide_name}" /> WOK end def guide_close |