diff options
author | Ralph Amissah <ralph@amissah.com> | 2013-01-23 23:48:09 -0500 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2013-01-23 23:48:09 -0500 |
commit | ff824c5c3d36f278e3050b171293e04c22b7356e (patch) | |
tree | e99afdc3c574e0bc399904610867e9ecd38a755c /lib/sisu/v3/epub_format.rb | |
parent | v4 v3: xhtml structure error, fix missing </div> (diff) |
v4 v3: epub, epub_format, provide full depth epub table of contentssisu_4.0.2
* [request Mikael Böök]
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 |