aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v3/html_minitoc.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sisu/v3/html_minitoc.rb')
-rw-r--r--lib/sisu/v3/html_minitoc.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/sisu/v3/html_minitoc.rb b/lib/sisu/v3/html_minitoc.rb
index dd3d760f..160881dd 100644
--- a/lib/sisu/v3/html_minitoc.rb
+++ b/lib/sisu/v3/html_minitoc.rb
@@ -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