diff options
author | Ralph Amissah <ralph@amissah.com> | 2007-08-21 21:35:10 +0100 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2007-08-21 21:35:10 +0100 |
commit | b832e9a1cd1c8669898b4d93fc1cd7199849979a (patch) | |
tree | 93316d0ffb998b4c2866f0c2492bad2079f90aa9 /lib/sisu/v0/html.rb | |
parent | Updated sisu-0.56.3 (diff) | |
parent | small fixes to manifest and html_scroll, and adjustment to html navigation ba... (diff) |
Merge branch 'upstream' into debian/sid
Diffstat (limited to 'lib/sisu/v0/html.rb')
-rw-r--r-- | lib/sisu/v0/html.rb | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/sisu/v0/html.rb b/lib/sisu/v0/html.rb index 5bec99bc..0798e604 100644 --- a/lib/sisu/v0/html.rb +++ b/lib/sisu/v0/html.rb @@ -392,10 +392,15 @@ WOK title=if para =~/(<~0;(?:\w|[0-6]:)\d+;\w\d+><#@dp:#@dp>)$/ m=/#{$1}/ para.gsub!(m,'') - linkname - else #if para =~/Document Information/ + if para=~/^\d~\s+Document Information/ + %{<b><a href="#docinfo">#{linkname}</a></b>} + else linkname + end + else @@toc[:scr] << '<br />' - link='docinfo' + link=if para =~/<~[1-9];([0-6]):\d+;\w\d+><#@dp:#@dp>$/; $1 + else '' + end %{<b><a href="##{link}">#{linkname}</a></b>} end format_toc=SiSU_HTML_Format_type::Format_toc.new(@md,title) |