From 4f2d1d3fb3b7566d4434a2910491c780d26890b7 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Mon, 11 Oct 2010 22:28:51 -0400 Subject: shared_metadata, odf, url characters to not match --- lib/sisu/v2/shared_metadata.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/sisu/v2/shared_metadata.rb b/lib/sisu/v2/shared_metadata.rb index e589c598..f27cf5ba 100644 --- a/lib/sisu/v2/shared_metadata.rb +++ b/lib/sisu/v2/shared_metadata.rb @@ -496,7 +496,7 @@ WOK @inf.gsub!(/#{Mx[:url_o]}(\S+?)#{Mx[:url_c]}/, %{#{url_brace.xml_open}\\1#{url_brace.xml_close}}) #http ftp matches with decoration else - @inf.gsub!(/(https?:\/\/[^<>'"\s]+)/, + @inf.gsub!(/(https?:\/\/[^<>()'"\s]+)/, %{#{url_brace.xml_open}\\1#{url_brace.xml_close}}) #http ftp matches with decoration end @inf.gsub!(/([a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+)/, -- cgit v1.2.3 From d9d0054e9f197b006577ecb3ff26b1abb1b16926 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Mon, 11 Oct 2010 22:30:34 -0400 Subject: texpdf, codeblocks, code-line continuation backslash dropped, fix (requested fix, Ben Armstrong) --- lib/sisu/v2/texpdf.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') diff --git a/lib/sisu/v2/texpdf.rb b/lib/sisu/v2/texpdf.rb index 91cd84b6..32b0d2ff 100644 --- a/lib/sisu/v2/texpdf.rb +++ b/lib/sisu/v2/texpdf.rb @@ -438,6 +438,7 @@ module SiSU_TeX dob.tmp=sp_char.special_characters_safe dob.tmp.gsub!(/#{Mx[:nbsp]}/,'{~}') #dob.tmp.gsub!(/#{Mx[:nbsp]}\s*/,'{~}') + dob.tmp.gsub!(/ \\( |#{Mx[:br_nl]})/,' {\textbackslash}\1') dob.tmp.gsub!(/(?:#{Mx[:br_nl]}\s*)+/,' \\\\\\ ') #watch dob.tmp.gsub!(/\n\n\n/m," \\newline\n\n") #watch ocn=SiSU_TeX_Pdf::Format_text_object.new(@md).ocn_display(dob) -- cgit v1.2.3