aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v0/xml_format.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2008-07-22 20:03:57 -0400
committerRalph Amissah <ralph@amissah.com>2008-07-22 20:03:57 -0400
commit812a2ffaf4ff90abc6225e1dde8f4fbb6c92c2c0 (patch)
tree67efd138f4f690c75efd38d75d53e1b72c0024e2 /lib/sisu/v0/xml_format.rb
parentUpdated sisu-0.67.5 (diff)
parentchangelog and version updated (diff)
Merge branch 'upstream' into debian/sid
Diffstat (limited to 'lib/sisu/v0/xml_format.rb')
-rw-r--r--lib/sisu/v0/xml_format.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sisu/v0/xml_format.rb b/lib/sisu/v0/xml_format.rb
index 5558bd80..20eb6736 100644
--- a/lib/sisu/v0/xml_format.rb
+++ b/lib/sisu/v0/xml_format.rb
@@ -292,7 +292,7 @@ WOK
@paranum=/(\d+)/m.match(txt[2])[1]
@headname=''
#if txt[2]=~/\d+/
- m=/\d~(\S+)/m.match(format)
+ m=/#{Mx[:lv_o]}\d:(\S+?)#{Mx[:lv_c]}/m.match(format)
headname=m[1] if m
@headname=%{<a name="h#{headname}"></a>} unless headname.nil?
@p_num=SiSU_XML_format::Paragraph_number.new(@md,@paranum)
@@ -301,7 +301,7 @@ WOK
rgx=/^[1-6-]~{1,2}/ #watch
link=txt[0].gsub(rgx,'') if @one =~rgx
@dp=@@dp ||=SiSU_Env::Info_env.new.digest.pattern
- rgx=/~\{\d+\s+(.+?)<#@dp>\}~/
+ rgx=/~\{\d+\s+(.+?)#{Mx[:id_o]}#@dp#{Mx[:id_c]}\}~/
link=txt[0].gsub(rgx,'\1') if txt[0] =~rgx
@link,@linkname=link,txt[1]
@vz=SiSU_Env::Get_init.instance.skin