diff options
author | Ralph Amissah <ralph@amissah.com> | 2007-09-24 15:08:15 +0100 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2007-09-24 15:08:15 +0100 |
commit | e97708c00d4b39deee89393bd8e9104843780273 (patch) | |
tree | 7bcf5965f458e0cca849b1a640e975d5c890ecbe /lib/sisu/v0/html.rb | |
parent | Updated sisu-0.59.0 (diff) | |
parent | toc, css, distinguish "Document Information (metadata)" link from other links... (diff) |
Merge branch 'upstream' into debian/sid
Diffstat (limited to 'lib/sisu/v0/html.rb')
-rw-r--r-- | lib/sisu/v0/html.rb | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/sisu/v0/html.rb b/lib/sisu/v0/html.rb index 2894fa27..89c6d463 100644 --- a/lib/sisu/v0/html.rb +++ b/lib/sisu/v0/html.rb @@ -390,12 +390,11 @@ WOK end toc={} format_toc=SiSU_HTML_Format_type::Format_toc.new(@md,title) - toc[:seg]=format_toc.lev1 title=if para =~/(<~0;(?:\w|[0-6]:)\d+;\w\d+><#@dp:#@dp>)$/ m=/#{$1}/ para.gsub!(m,'') if para=~/^\d~\s+Document Information/ - %{<b><a href="#docinfo">#{linkname}</a></b>} + %{<a href="#docinfo">#{linkname}</a>} else linkname end else @@ -406,7 +405,11 @@ WOK %{<b><a href="##{link}">#{linkname}</a></b>} end format_toc=SiSU_HTML_Format_type::Format_toc.new(@md,title) - toc[:scr]=format_toc.lev1 + if para =~/^\d~\s+Document Information/ + toc[:seg]=toc[:scr]=format_toc.lev0 + else + toc[:seg]=toc[:scr]=format_toc.lev1 + end toc end def level_2 |