diff options
author | Ralph Amissah <ralph@amissah.com> | 2010-10-11 22:30:34 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2010-10-11 22:30:42 -0400 |
commit | d9d0054e9f197b006577ecb3ff26b1abb1b16926 (patch) | |
tree | a3aeabe1c51c1c2d2e22a346b68f065b9bd2b1d1 /lib | |
parent | shared_metadata, odf, url characters to not match (diff) |
texpdf, codeblocks, code-line continuation backslash dropped, fix
(requested fix, Ben Armstrong)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/sisu/v2/texpdf.rb | 1 |
1 files changed, 1 insertions, 0 deletions
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) |