diff options
author | Ralph Amissah <ralph@amissah.com> | 2007-09-24 15:07:58 +0100 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2007-09-24 15:07:58 +0100 |
commit | 57486aeb726bb30056919ebd68c2aca702011ec1 (patch) | |
tree | f84c267529a6812924a2334f59db62400c85ec62 /lib/sisu/v0/html.rb | |
parent | html toc, css, cosmetic fix for rights and prefix in toc (diff) |
toc, css, distinguish "Document Information (metadata)" link from other links, made smaller
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 |