diff options
author | Ralph Amissah <ralph@amissah.com> | 2007-10-13 11:26:57 +0100 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2007-10-13 11:26:57 +0100 |
commit | 48f576604b229255e221cdcd587f532b2bd014d6 (patch) | |
tree | 3ca4f9edb43c7e99c6dc02884a3295f1e72ff9cc /lib/sisu/v0/html_tune.rb | |
parent | sisu manual download page, clean (diff) |
underscore exception requires additional tweaking of regexes, solution not optimal (sisu_markup as basic test)
Diffstat (limited to 'lib/sisu/v0/html_tune.rb')
-rw-r--r-- | lib/sisu/v0/html_tune.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/sisu/v0/html_tune.rb b/lib/sisu/v0/html_tune.rb index 82183a02..ab37abb2 100644 --- a/lib/sisu/v0/html_tune.rb +++ b/lib/sisu/v0/html_tune.rb @@ -333,7 +333,9 @@ module SiSU_Tune end para.gsub!(/<a href="\.\.\//,%{<a href="#{@vz.url_site}/}) end - else para.gsub!(/(?=^|[^}])_</m,'<'); para.gsub!(/(?=^|[^}])_>/m,'>') #code-block: angle brackets special characters + else + para.gsub!(/(^|[^}])_</m,'\1<'); para.gsub!(/(^|[^}])_>/m,'\1>') #code-block: angle brackets special characters + para.gsub!(/(^|[^}])_</m,'\1<'); para.gsub!(/(^|[^}])_>/m,'\1>') end @tuned_file << para end |