diff options
author | Ralph Amissah <ralph@amissah.com> | 2007-08-21 21:34:41 +0100 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2007-08-21 21:34:41 +0100 |
commit | 7ef4f9a39e2aeffd9731ac0b68caca4c1b8cf03f (patch) | |
tree | fda200da69959ea24f146937bfd9fee843f368c2 /lib/sisu/v0/html.rb | |
parent | 0.56.3 md5s (diff) |
small fixes to manifest and html_scroll, and adjustment to html navigation band use in concordance and manifest
* manifest
* use relative link by default
* in absence of configured url_root (http://) use info on location on local
filesystem (file://)
* html outputs, navigation band/banner adjustment, in concordance and manifest
* html scroll, fix to document information link in table of contents
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) |