aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v0/html_tune.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2007-10-12 20:30:33 +0100
committerRalph Amissah <ralph@amissah.com>2007-10-12 20:30:33 +0100
commit6acc0270d1323cbdfd4a7c89377cdb7604895d63 (patch)
tree9231eae1a28ca9b0da6558d7adf15c27f7e62b46 /lib/sisu/v0/html_tune.rb
parentxml dom extract footnote from grouped text (diff)
special character exceptions, some fixes, primarily underscore
Diffstat (limited to 'lib/sisu/v0/html_tune.rb')
-rw-r--r--lib/sisu/v0/html_tune.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sisu/v0/html_tune.rb b/lib/sisu/v0/html_tune.rb
index b98f19d8..82183a02 100644
--- a/lib/sisu/v0/html_tune.rb
+++ b/lib/sisu/v0/html_tune.rb
@@ -333,7 +333,7 @@ module SiSU_Tune
end
para.gsub!(/<a href="\.\.\//,%{<a href="#{@vz.url_site}/})
end
- else para.gsub!(/_</m,'&lt;'); para.gsub!(/_>/m,'&gt;') #code-block: angle brackets special characters
+ else para.gsub!(/(?=^|[^}])_</m,'&lt;'); para.gsub!(/(?=^|[^}])_>/m,'&gt;') #code-block: angle brackets special characters
end
@tuned_file << para
end