aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v2/dal_substitutions_and_insertions.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2011-03-11 08:21:39 -0500
committerRalph Amissah <ralph@amissah.com>2011-03-11 08:21:39 -0500
commit2c0a67fc37d65bf8c2d09a0c593700a23553dc3c (patch)
treeb414fd321bb1e17b6e203beb4007dc8378de333c /lib/sisu/v2/dal_substitutions_and_insertions.rb
parentdebian/changelog (3.0.2-1) (diff)
parentv2, v3: changelog git.sisudoc.org tag-points [3.0.3-1] (diff)
Merge branch 'upstream' into debian/sid
Diffstat (limited to 'lib/sisu/v2/dal_substitutions_and_insertions.rb')
-rw-r--r--lib/sisu/v2/dal_substitutions_and_insertions.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/sisu/v2/dal_substitutions_and_insertions.rb b/lib/sisu/v2/dal_substitutions_and_insertions.rb
index e1326232..c598b990 100644
--- a/lib/sisu/v2/dal_substitutions_and_insertions.rb
+++ b/lib/sisu/v2/dal_substitutions_and_insertions.rb
@@ -7,7 +7,7 @@
* Author: Ralph Amissah
- * Copyright: (C) 1997 - 2010, Ralph Amissah, All Rights Reserved.
+ * Copyright: (C) 1997 - 2011, Ralph Amissah, All Rights Reserved.
* License: GPL 3 or later:
@@ -144,8 +144,8 @@ module SiSU_substitute_and_insert
para.gsub!(/^(:?A~)\s*$/,'\1~ @title @author') #conditional header
para.gsub!(/^((?:[1-9]|:?[A-C])~\S*)\s*$/,'\1~ [Note: heading marker::required title missing]~#') #conditional header for incorporated document 2004w12
if para =~/^@\S+?:/
- para.gsub!(/^@(\S+?):\s+/,"#{Mx[:meta_o]}\\1#{Mx[:meta_c]}")
- para.gsub!(/^@(\S+?):([+-])\s+/,"#{Mx[:meta_o]}\\1\\2#{Mx[:meta_c]}")
+ para.gsub!(/^@(\S+?):(\s+|$)/,"#{Mx[:meta_o]}\\1#{Mx[:meta_c]}\\2")
+ para.gsub!(/^@(\S+?):([+-])(\s+|$)/,"#{Mx[:meta_o]}\\1\\2#{Mx[:meta_c]}\\3")
end
end
end