diff options
Diffstat (limited to 'lib/sisu/xhtml_epub2.rb')
-rw-r--r-- | lib/sisu/xhtml_epub2.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/sisu/xhtml_epub2.rb b/lib/sisu/xhtml_epub2.rb index 513b8436..c80a90df 100644 --- a/lib/sisu/xhtml_epub2.rb +++ b/lib/sisu/xhtml_epub2.rb @@ -579,7 +579,7 @@ module SiSU_XHTML_EPUB2 ocn=dob.ocn toc={} if ocn \ - and ocn !~/#/ + and ocn.to_s !~/#/ p_num=SiSU_XHTML_EPUB2_Format::ParagraphNumber.new(@md,ocn) lnk_n_txt=%{ <a href="#{@@seg_url}#{Sfx[:epub_xhtml]}#o#{ocn}"> #{linkname} @@ -600,7 +600,7 @@ module SiSU_XHTML_EPUB2 ocn=dob.ocn toc={} if ocn \ - and ocn !~/#/ + and ocn.to_s !~/#/ p_num=SiSU_XHTML_EPUB2_Format::ParagraphNumber.new(@md,ocn) lnk_n_txt=%{ <a href="#{@@seg_url}#{Sfx[:epub_xhtml]}#o#{ocn}"> #{linkname} @@ -621,7 +621,7 @@ module SiSU_XHTML_EPUB2 ocn=dob.ocn toc={} if ocn \ - and ocn !~/#/ + and ocn.to_s !~/#/ p_num=SiSU_XHTML_EPUB2_Format::ParagraphNumber.new(@md,ocn) lnk_n_txt=%{ <a href="#{@@seg_url}#{Sfx[:epub_xhtml]}#o#{ocn}"> #{linkname} |