aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v3/html_tune.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2011-12-31 08:35:25 -0500
committerRalph Amissah <ralph@amissah.com>2011-12-31 08:37:43 -0500
commit66d81556302cae1c9c69507e2458f1406dcae831 (patch)
tree1ed13630e10129b288f9d5b066aaeb13078332a6 /lib/sisu/v3/html_tune.rb
parentv3: 3.1.10 version & changelog "opened" (diff)
v3: html, epub, (& xml) codeblocks, treatment of '<<' & '>>', fixsisu_3.1.10
* (remove legacy codeblock match rule, watch)
Diffstat (limited to 'lib/sisu/v3/html_tune.rb')
-rw-r--r--lib/sisu/v3/html_tune.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/sisu/v3/html_tune.rb b/lib/sisu/v3/html_tune.rb
index afedec54..bc833eaa 100644
--- a/lib/sisu/v3/html_tune.rb
+++ b/lib/sisu/v3/html_tune.rb
@@ -317,8 +317,7 @@ module SiSU_HTML_Tune
dob.obj.gsub!(/<a href="\.\.\//,%{<a href="#{@vz.url_site}/})
dob.obj.gsub!(/<a href="#{Xx[:html_relative2]}\//,%{<a href="#{@vz.url_site}/})
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
dob
end