aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2009-07-04 08:43:25 -0400
committerRalph Amissah <ralph@amissah.com>2009-07-04 08:43:25 -0400
commit9cbb974b492c390ed03091a55a945dcf90eec0eb (patch)
tree05c895c106948d4497f1bd5d5af70be747fbb827 /lib
parentdal_idx, book_idx_html, match sysenv (diff)
dal_numbering, minor regex reduction
Diffstat (limited to 'lib')
-rw-r--r--lib/sisu/v0/dal_numbering.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/sisu/v0/dal_numbering.rb b/lib/sisu/v0/dal_numbering.rb
index bbbd3f46..05123bbc 100644
--- a/lib/sisu/v0/dal_numbering.rb
+++ b/lib/sisu/v0/dal_numbering.rb
@@ -133,10 +133,7 @@ module SiSU_numbering
if (para =~/^(?:#{no1}|^#{no2}|^#{no3}#{no4})~#/ \
and para !~/^#{Mx[:lv_o]}4:endnotes#{Mx[:lv_c]}/)
t_not+=1 #; t_no2=0; t_no3=0
- para.gsub!(/^(#{Mx[:lv_o]}#{no1}):#(#{Mx[:lv_c]})/,"\\1:ps#{t_not}\\2")
- para.gsub!(/^(#{Mx[:lv_o]}#{no2}):#(#{Mx[:lv_c]})/,"\\1:ps#{t_not}\\2")
- para.gsub!(/^(#{Mx[:lv_o]}#{no3}):#(#{Mx[:lv_c]})/,"\\1:ps#{t_not}\\2")
- para.gsub!(/^(#{Mx[:lv_o]}#{no4}):#(#{Mx[:lv_c]})/,"\\1:ps#{t_not}\\2")
+ para.gsub!(/^(#{Mx[:lv_o]}(?:#{no1}|#{no2}|#{no3}|#{no4})):#(#{Mx[:lv_c]})/,"\\1:ps#{t_not}\\2")
end
if para =~/#{Mx[:lv_o]}#{no1}:/
@subnumber=1