From 66d81556302cae1c9c69507e2458f1406dcae831 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Sat, 31 Dec 2011 08:35:25 -0500 Subject: v3: html, epub, (& xml) codeblocks, treatment of '<<' & '>>', fix * (remove legacy codeblock match rule, watch) --- lib/sisu/v3/shared_markup_alt.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/sisu/v3/shared_markup_alt.rb') diff --git a/lib/sisu/v3/shared_markup_alt.rb b/lib/sisu/v3/shared_markup_alt.rb index a7d08cae..5bd49342 100644 --- a/lib/sisu/v3/shared_markup_alt.rb +++ b/lib/sisu/v3/shared_markup_alt.rb @@ -174,8 +174,7 @@ module SiSU_text_representation @s=@s.gsub(/(#{Mx[:lnk_c]})#{Mx[:url_o]}(\S+?)#{Mx[:url_c]}/,'\1\2\3') #special case \{ e.g. \}http://url @s=@s.gsub(/#{Mx[:url_o]}(\S+?)#{Mx[:url_c]}/,%{#{@url_brace.xml_open}\\1#{@url_brace.xml_close}}) #http ftp matches with decoration else - @s=@s.gsub(/(^|[^}])_/m,'\1>') #code-block: angle brackets special characters - @s=@s.gsub(/(^|[^}])_/m,'\1>') + @s=@s.gsub(//m,'>') end if @t_o.is=='paragraph' if @t_o.bullet_ -- cgit v1.2.3