aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/xhtml_epub2.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2020-04-14 11:10:59 -0400
committerRalph Amissah <ralph.amissah@gmail.com>2020-05-09 20:40:02 -0400
commit88ed8a0c1376fbe6d45059694ce31db597fde3e9 (patch)
tree4fb95449893c488b2954bf432db4997829f54284 /lib/sisu/xhtml_epub2.rb
parentemacs sisu-mode.el, syntax highlighting match https (diff)
ruby 2.7 fix
Diffstat (limited to 'lib/sisu/xhtml_epub2.rb')
-rw-r--r--lib/sisu/xhtml_epub2.rb6
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}