aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v3/shared_xml.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sisu/v3/shared_xml.rb')
-rw-r--r--lib/sisu/v3/shared_xml.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/sisu/v3/shared_xml.rb b/lib/sisu/v3/shared_xml.rb
index f6cd6598..f4fa395c 100644
--- a/lib/sisu/v3/shared_xml.rb
+++ b/lib/sisu/v3/shared_xml.rb
@@ -392,8 +392,7 @@ module SiSU_XML_munge
dob.obj.gsub!(/#{Mx[:url_o]}_(\S+?)#{Mx[:url_c]}/,
'<link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="\1">\1</link>') #escaped urls not linked, deal with later
else
- dob.obj.gsub!(/(^|[^}])_</m,'\1&lt;'); dob.obj.gsub!(/(^|[^}])_>/m,'\1&gt;') #code-block: angle brackets special characters
- dob.obj.gsub!(/(^|[^}])_</m,'\1&lt;'); dob.obj.gsub!(/(^|[^}])_>/m,'\1&gt;')
+ dob.obj.gsub!(/</m,'&lt;'); dob.obj.gsub!(/>/m,'&gt;')
end
if dob.of=='block'
dob.obj.gsub!(/#{Mx[:gl_bullet]}/,'‚óŹ ')