aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2007-11-26 16:48:18 +0000
committerRalph Amissah <ralph@amissah.com>2007-11-26 16:48:18 +0000
commit6b9b52037233153d8820d66aa91a17d2945590a9 (patch)
tree7c764f0ac751fd7c6c47d9ed4c0b9042b4e968b5
parentsisu_download.ssi version number info (diff)
html scroll, <hr> line separator before endnotes and metadata
-rw-r--r--lib/sisu/v0/html_scroll.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/sisu/v0/html_scroll.rb b/lib/sisu/v0/html_scroll.rb
index 483b5222..1c5b9659 100644
--- a/lib/sisu/v0/html_scroll.rb
+++ b/lib/sisu/v0/html_scroll.rb
@@ -80,6 +80,9 @@ module SiSU_HTML_scroll
@rcdc=false
@scr={ :body=>[],:metadata=>[],:owner_details=>[] }
data.each do |para|
+ if para =~/^\d~endnotes\s+Endnotes/
+ para.gsub!(/Endnotes.+/,'')
+ end
if para =~/^\d~meta\s+Document Information/
para.gsub!(/(Document Information(?: \(metadata\))?)/,'\1<a name="docinfo"></a>')
end
@@ -147,6 +150,9 @@ module SiSU_HTML_scroll
format_seg=SiSU_HTML_Format_type::Format_seg.new(@md,one,two)
para=format_seg.no_paranum
end
+ if para =~/Document Information/
+ para.gsub!(/(Document Information(?: \(metadata\))?)/,'<hr><br>\1')
+ end
if para =~/<a name="n\d+">/ \
and para =~/^(?:\^~\d+\s|<!e[:_]\d+!>)/ # hmmm re-adjusted 200507, for alt endnote which should again be matched ^~ ... not in response to problem though
para=''