aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v0/html_minitoc.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2009-07-04 08:46:20 -0400
committerRalph Amissah <ralph@amissah.com>2009-07-04 08:46:23 -0400
commit4e4ce5d362db3e88d41d371645bf998cdead1fbf (patch)
tree70a0b5b1bd3e1f3786a26adf34c851926c2829c3 /lib/sisu/v0/html_minitoc.rb
parentdal_numbering, minor regex reduction (diff)
html various minor: use suffix provided in constants; module SiSU_HTML_Tune; html promo
html promo, possibility of use of adsense, or other
Diffstat (limited to 'lib/sisu/v0/html_minitoc.rb')
-rw-r--r--lib/sisu/v0/html_minitoc.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/sisu/v0/html_minitoc.rb b/lib/sisu/v0/html_minitoc.rb
index 2f95326a..62054db0 100644
--- a/lib/sisu/v0/html_minitoc.rb
+++ b/lib/sisu/v0/html_minitoc.rb
@@ -59,7 +59,7 @@
=end
module SiSU_HTML_minitoc
require "#{SiSU_lib}/html_tune"
- include SiSU_Tune
+ include SiSU_HTML_Tune
class Toc_mini
@@seg_mini=nil
@@seg_url=''
@@ -119,7 +119,7 @@
title=unless txt =~/Document Information/; linkname
else
link='metadata'
- %{<b><a href="#{@md.fnl[:pre]}#{link}#{@md.fnl[:mid]}#{@md.sfx}#{@md.fnl[:post]}">#{linkname}</a></b>}
+ %{<b><a href="#{@md.fnl[:pre]}#{link}#{@md.fnl[:mid]}#{Sfx[:html]}#{@md.fnl[:post]}">#{linkname}</a></b>}
end
toc={}
txt_obj={:txt =>title}
@@ -162,7 +162,7 @@
txt.gsub!(/#{Mx[:id_o]}~0;(?:\w|[0-6]:)\d+;\w\d+#{Mx[:id_c]}#{Mx[:id_o]}#@dp:#@dp#{Mx[:id_c]}$/,'')
if txt =~/^#{Mx[:lv_o]}4:/
seg_link=txt.gsub(/^\s*#{Mx[:lv_o]}4:(\S+?)#{Mx[:lv_c]}\s*(.+?)$/,
- %{ <a href="#{@md.fnl[:pre]}\\1#{@md.fnl[:mid]}#{@md.sfx}#{@md.fnl[:post]}" target="_top">
+ %{ <a href="#{@md.fnl[:pre]}\\1#{@md.fnl[:mid]}#{Sfx[:html]}#{@md.fnl[:post]}" target="_top">
\\2
</a> })
if seg_link =~/(#{Mx[:id_o]}\~\d+;(?:\w|[0-6]:\d+);\w\d+#{Mx[:id_c]}#{Mx[:id_o]}#@dp:#@dp#{Mx[:id_c]})$/m
@@ -172,7 +172,7 @@
@@seg_url=txt[/^#{Mx[:lv_o]}4:(\S+?)#{Mx[:lv_c]}.+?$/,1]
elsif txt =~/\d+.\d+.\d+.\d+|\d+.\d+.\d+|\d+.\d+|\d+/
seg_link=txt.gsub(/^\s*(#{@md.lv4}\s+)\s*(\d+.\d+.\d+.\d+|\d+.\d+.\d+|\d+.\d+|\d+)(.*)/,
- %{<a href="#{@md.fnl[:pre]}\\2#{@md.fnl[:mid]}#{@md.sfx}#{@md.fnl[:post]}" } +
+ %{<a href="#{@md.fnl[:pre]}\\2#{@md.fnl[:mid]}#{Sfx[:html]}#{@md.fnl[:post]}" } +
%{target="_top">\\1 \\2 \\3</a> })
end
txt_obj={:txt =>seg_link}
@@ -198,7 +198,7 @@
txt.gsub!(m,'')
title=linkname
else
- lnk_n_txt=%{ <a href="#{@md.fnl[:pre]}#{@@seg_url}#{@md.fnl[:mid]}#{@md.sfx}#{@md.fnl[:post]}##{ocn}">
+ lnk_n_txt=%{ <a href="#{@md.fnl[:pre]}#{@@seg_url}#{@md.fnl[:mid]}#{Sfx[:html]}#{@md.fnl[:post]}##{ocn}">
#{linkname}
</a>}
txt_obj={:txt =>lnk_n_txt}
@@ -224,7 +224,7 @@
txt.gsub!(m,'')
title=linkname
else
- lnk_n_txt=%{ <a href="#{@md.fnl[:pre]}#{@@seg_url}#{@md.fnl[:mid]}#{@md.sfx}#{@md.fnl[:post]}##{ocn}">
+ lnk_n_txt=%{ <a href="#{@md.fnl[:pre]}#{@@seg_url}#{@md.fnl[:mid]}#{Sfx[:html]}#{@md.fnl[:post]}##{ocn}">
#{linkname}
</a>}
txt_obj={:txt =>lnk_n_txt}