diff options
Diffstat (limited to 'lib/sisu/v3/html_minitoc.rb')
-rw-r--r-- | lib/sisu/v3/html_minitoc.rb | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/sisu/v3/html_minitoc.rb b/lib/sisu/v3/html_minitoc.rb index c0731bd2..160881dd 100644 --- a/lib/sisu/v3/html_minitoc.rb +++ b/lib/sisu/v3/html_minitoc.rb @@ -1,4 +1,4 @@ -# coding: utf-8 +# encoding: utf-8 =begin * Name: SiSU @@ -58,7 +58,7 @@ =end module SiSU_HTML_minitoc - require "#{SiSU_lib}/html_tune" # html_tune.rb + require_relative 'html_tune' # html_tune.rb include SiSU_HTML_Tune class Toc_mini @@seg_mini=nil @@ -118,7 +118,7 @@ %{<b><a href="#{@md.fnl[:pre]}#{link}#{@md.fnl[:mid]}#{Sfx[:html]}#{@md.fnl[:post]}">#{txt.obj}</a></b>} end toc={} - txt_obj={:txt =>title} + txt_obj={ txt: title } format_toc=SiSU_HTML_Format::Format_toc.new(@md,txt_obj) toc_mini=if txt.name =~/^meta/ and txt.obj=~/Document Information/ format_toc.mini_tail @@ -132,14 +132,14 @@ and txt.ocn !=0 txt.obj.gsub!(@pat_strip_heading_name,'\1') end - txt_obj={:txt =>txt.obj} + txt_obj={ txt: txt.obj } format_toc=SiSU_HTML_Format::Format_toc.new(@md,txt_obj) toc_mini=format_toc.mini_lev2 toc_mini end def level_3 txt=@data - txt_obj={:txt =>txt.obj} + txt_obj={ txt: txt.obj } format_toc=SiSU_HTML_Format::Format_toc.new(@md,txt_obj) toc_mini=format_toc.mini_lev3 toc_mini @@ -157,7 +157,7 @@ %{<a href="#{@md.fnl[:pre]}\\2#{@md.fnl[:mid]}#{Sfx[:html]}#{@md.fnl[:post]}" } + %{target="_top">\\1 \\2</a> }) end - txt_obj={:txt =>seg_link} + txt_obj={ txt: seg_link } format_toc=SiSU_HTML_Format::Format_toc.new(@md,txt_obj) toc_mini=format_toc.mini_lev4 toc_mini @@ -173,7 +173,7 @@ lnk_n_txt=%{ <a href="#{@md.fnl[:pre]}#{@@seg_url}#{@md.fnl[:mid]}#{Sfx[:html]}#{@md.fnl[:post]}##{txt.ocn}"> #{txt.obj} </a>} - txt_obj={:txt =>lnk_n_txt} + txt_obj={ txt: lnk_n_txt } format_toc=SiSU_HTML_Format::Format_toc.new(@md,txt_obj) toc_mini=format_toc.mini_lev5 toc_mini @@ -188,7 +188,7 @@ lnk_n_txt=%{ <a href="#{@md.fnl[:pre]}#{@@seg_url}#{@md.fnl[:mid]}#{Sfx[:html]}#{@md.fnl[:post]}##{txt.ocn}"> #{txt.obj} </a>} - txt_obj={:txt =>lnk_n_txt} + txt_obj={ txt: lnk_n_txt } format_toc=SiSU_HTML_Format::Format_toc.new(@md,txt_obj) toc_mini=format_toc.mini_lev6 toc_mini |