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.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sisu/v0/html_scroll.rb b/lib/sisu/v0/html_scroll.rb
index 629cfc0c..30640f30 100644
--- a/lib/sisu/v0/html_scroll.rb
+++ b/lib/sisu/v0/html_scroll.rb
@@ -80,13 +80,13 @@ module SiSU_HTML_scroll
@rcdc=false
@scr={ :body=>[],:metadata=>[],:owner_details=>[] }
data.each do |para|
- if para =~/^\d~\s+Document Information/
+ if para =~/^\d~meta\s+Document Information/
para.gsub!(/(Document Information(?: \(metadata\))?)/,'\1<a name="docinfo"></a>')
end
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/)
+ @rcdc=true if @rcdc==false and (para =~/^\d~metadata/ or para =~/^1~meta\s+Document Information/)
if para !~/(^0~|<ENDNOTES>|<EOF>)/
unless para =~/^<:code>/; para.gsub!(/~[{\[].+?[}\]]~\s+/m,' ')
end