diff options
author | Ralph Amissah <ralph@amissah.com> | 2010-10-15 16:22:07 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2010-10-15 16:22:07 -0400 |
commit | 505c66abbbdc8f9f8f9930cacec751e6a886d8d9 (patch) | |
tree | 61a1e8c3351cc9cbc33ef5a62280770e89a07f8f /lib | |
parent | sisu_markup, date typo fix (diff) |
texpdf, codeblocks do not permit empty lines, fix
Diffstat (limited to 'lib')
-rw-r--r-- | lib/sisu/v2/texpdf.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/sisu/v2/texpdf.rb b/lib/sisu/v2/texpdf.rb index 363cfc8c..3a868cd8 100644 --- a/lib/sisu/v2/texpdf.rb +++ b/lib/sisu/v2/texpdf.rb @@ -435,8 +435,10 @@ module SiSU_TeX dob.tmp.gsub!(/#{Mx[:nbsp]}/,'{~}') #dob.tmp.gsub!(/#{Mx[:nbsp]}\s*/,'{~}') dob.tmp.gsub!(/#{Mx[:vline]}/m,'\vline') 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 + dob.tmp.gsub!(/#{Mx[:br_nl]}\s*\Z/m,'') + dob.tmp.gsub!(/#{Mx[:br_nl]}{2}/,'\newline \\\\\\ ') + dob.tmp.gsub!(/#{Mx[:br_nl]}/,' \\\\\\ ') + dob.tmp.gsub!(/\n\n\n/m," \\newline\n\n") ocn=SiSU_TeX_Pdf::Format_text_object.new(@md).ocn_display(dob) dob.tmp = ocn \ + @tex_ml.paraskip_small \ |