aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v5/html_minitoc.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2013-06-22 01:13:46 -0400
committerRalph Amissah <ralph@amissah.com>2013-06-22 01:13:49 -0400
commitf31e286f4a73c5c0f355512b0cb45c6c82088516 (patch)
treefdf22b179aef9937e7f6a3e71fc6c1e7f0ff9119 /lib/sisu/v5/html_minitoc.rb
parentvim, ftplugin sisu.vim, c-\ hard wrap lines to line width (moved from c-j) (diff)
v5: general code cleaningsisu_4.1.5
* propagate back to v4 after testing
Diffstat (limited to 'lib/sisu/v5/html_minitoc.rb')
-rw-r--r--lib/sisu/v5/html_minitoc.rb7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/sisu/v5/html_minitoc.rb b/lib/sisu/v5/html_minitoc.rb
index bd9835dd..99f11d87 100644
--- a/lib/sisu/v5/html_minitoc.rb
+++ b/lib/sisu/v5/html_minitoc.rb
@@ -122,7 +122,6 @@
link='metadata'
%{<b><a href="#{link}#{@md.lang_code_insert}#{Sfx[:html]}">#{txt.obj}</a></b>}
end
- toc={}
txt_obj={ txt: title }
format_toc=SiSU_HTML_Format::FormatToc.new(@md,txt_obj)
toc_mini=if txt.name =~/^meta/ and txt.obj=~/Document Information/
@@ -176,8 +175,7 @@
&& txt.ocn !=0
txt.obj=txt.obj.gsub(@pat_strip_heading_name,'\1')
end
- toc={}
- lnk_n_txt=%{ <a href="#{@@seg_url}#{@md.lang_code_insert}#{Sfx[:html]}##{txt.ocn}">
+ lnk_n_txt=%{ <a href="#{@@seg_url}#{@md.lang_code_insert}#{Sfx[:html]}##{txt.ocn}">
#{txt.obj}
</a>}
txt_obj={ txt: lnk_n_txt }
@@ -192,8 +190,7 @@
&& txt.ocn !=0
txt.obj=txt.obj.gsub(@pat_strip_heading_name,'\1')
end
- toc={}
- lnk_n_txt=%{ <a href="#{@@seg_url}#{@md.lang_code_insert}#{Sfx[:html]}##{txt.ocn}">
+ lnk_n_txt=%{ <a href="#{@@seg_url}#{@md.lang_code_insert}#{Sfx[:html]}##{txt.ocn}">
#{txt.obj}
</a>}
txt_obj={ txt: lnk_n_txt }