aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v0/html.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2007-09-25 02:19:11 +0100
committerRalph Amissah <ralph@amissah.com>2007-09-25 02:19:11 +0100
commit9208f7117032849695e061e1fdd375f85a50ccac (patch)
treee04ccd671decb64df1abbfda2823075e0b44f9f7 /lib/sisu/v0/html.rb
parentdocumentation regenerated, large diff (diff)
cosmetic: html table of contents; urls html output
Diffstat (limited to 'lib/sisu/v0/html.rb')
-rw-r--r--lib/sisu/v0/html.rb11
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/sisu/v0/html.rb b/lib/sisu/v0/html.rb
index 89c6d463..b23a24b9 100644
--- a/lib/sisu/v0/html.rb
+++ b/lib/sisu/v0/html.rb
@@ -390,6 +390,10 @@ WOK
end
toc={}
format_toc=SiSU_HTML_Format_type::Format_toc.new(@md,title)
+ toc[:seg]=if para =~/^\d~\s+Document Information/
+ format_toc.lev0
+ else format_toc.lev1
+ end
title=if para =~/(<~0;(?:\w|[0-6]:)\d+;\w\d+><#@dp:#@dp>)$/
m=/#{$1}/
para.gsub!(m,'')
@@ -405,10 +409,9 @@ WOK
%{<b><a href="##{link}">#{linkname}</a></b>}
end
format_toc=SiSU_HTML_Format_type::Format_toc.new(@md,title)
- if para =~/^\d~\s+Document Information/
- toc[:seg]=toc[:scr]=format_toc.lev0
- else
- toc[:seg]=toc[:scr]=format_toc.lev1
+ toc[:scr]=if para =~/^\d~\s+Document Information/
+ format_toc.lev0
+ else format_toc.lev1
end
toc
end