aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v0/html_scroll.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sisu/v0/html_scroll.rb')
-rw-r--r--lib/sisu/v0/html_scroll.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/sisu/v0/html_scroll.rb b/lib/sisu/v0/html_scroll.rb
index 03108ba9..3739f660 100644
--- a/lib/sisu/v0/html_scroll.rb
+++ b/lib/sisu/v0/html_scroll.rb
@@ -80,11 +80,11 @@ module SiSU_HTML_scroll
@rcdc=false
@scr={ :body=>[],:metadata=>[],:owner_details=>[] }
data.each do |para|
- if para =~/Document Information/
- para.gsub!(/(Document Information)/,'\1<a name="docinfo"></a>')
+ if para =~/^\d~\s+Document Information/
+ para.gsub!(/(Document Information(?: \(metadata\))?)/,'\1<a name="docinfo"></a>')
end
- if para =~/MetaData/
- para.gsub!(/(MetaData)/,'\1<a name="metadata"></a>')
+ if para =~/^\d~metadata\s+Metadata/
+ para.gsub!(/(Metadata)/,'\1<a name="metadata"></a>')
end
@rcdc=true if @rcdc==false and (para =~/^\d~metadata/ or para =~/^1~\s+Document Information/)
if para !~/(^0~|<ENDNOTES>|<EOF>)/