diff options
author | Ralph Amissah <ralph@amissah.com> | 2011-12-31 08:35:25 -0500 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2011-12-31 08:37:43 -0500 |
commit | 66d81556302cae1c9c69507e2458f1406dcae831 (patch) | |
tree | 1ed13630e10129b288f9d5b066aaeb13078332a6 /lib/sisu/v3/shared_html_lite.rb | |
parent | v3: 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/shared_html_lite.rb')
-rw-r--r-- | lib/sisu/v3/shared_html_lite.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/sisu/v3/shared_html_lite.rb b/lib/sisu/v3/shared_html_lite.rb index 0dd13a34..33052cd2 100644 --- a/lib/sisu/v3/shared_html_lite.rb +++ b/lib/sisu/v3/shared_html_lite.rb @@ -165,8 +165,7 @@ module SiSU_Format_Shared s.gsub!(/(#{Mx[:lnk_c]})#{Mx[:url_o]}(\S+?)#{Mx[:url_c]}/,'\1<a href="\2" target="_top">\2</a>') #special case \{ e.g. \}http://url s.gsub!(/(^|#{Mx[:gl_c]}|\s)#{Mx[:url_o]}(\S+?)#{Mx[:url_c]}/,%{\\1#{@brace_url.xml_open}<a href="\\2" target="_top">\\2</a>#{@brace_url.xml_close}\\3}) #http ftp matches with decoration else - s.gsub!(/(^|[^}])_</m,'\1<'); s.gsub!(/(^|[^}])_>/m,'\1>') #code-block: angle brackets special characters - s.gsub!(/(^|[^}])_</m,'\1<'); s.gsub!(/(^|[^}])_>/m,'\1>') + s.gsub!(/</m,'<'); s.gsub!(/>/m,'>') end s end |