diff options
author | Ralph Amissah <ralph.amissah@gmail.com> | 2007-06-15 12:05:07 +0100 |
---|---|---|
committer | Ralph Amissah <ralph.amissah@gmail.com> | 2007-06-15 12:05:07 +0100 |
commit | 6be61200c529f7f61a89aac6158eb63026d7a44b (patch) | |
tree | fe4bcad72eb273e07ac0429fd5c1977ed0efa682 /lib/sisu/v0/texpdf.rb | |
parent | sisu-0.54.0 (minor additions to syntax, indent range extended) (diff) |
cgi search script fix, related to highlighting matches, changelog update, rest removal of hanging whitespacesisu_0.54.1
Diffstat (limited to 'lib/sisu/v0/texpdf.rb')
-rw-r--r-- | lib/sisu/v0/texpdf.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/sisu/v0/texpdf.rb b/lib/sisu/v0/texpdf.rb index aec45b58..a5db4c77 100644 --- a/lib/sisu/v0/texpdf.rb +++ b/lib/sisu/v0/texpdf.rb @@ -283,12 +283,12 @@ module SiSU_TeX else para end if para.class == String - @md.flag_tables=true if para =~/<!Th?¡\s+c/ + @md.flag_tables=true if para =~/<!Th?¡\s+c/ do_mono=SiSU_TeX_Pdf::Format_text_object.new(@md,para) @tex_file << do_mono.special_characters elsif para.class == Array para.each do |grp| - @md.flag_tables=true if grp =~/<!Th?¡\s+c/ + @md.flag_tables=true if grp =~/<!Th?¡\s+c/ do_mono=SiSU_TeX_Pdf::Format_text_object.new(@md,grp) @tex_file << do_mono.special_characters end @@ -420,8 +420,8 @@ WOK mono=SiSU_TeX_Pdf::Format_text_object.new(@md,para) if para =~/<:(code|alt|verse|group)>/ or @@flag_group==true if para =~/<:(code|alt|verse|group)>/ - @lineone=case para - when /<:(alt|verse|group)>/; para + @lineone=case para + when /<:(alt|verse|group)>/; para when /<:code>/; "#{@tex.paraskip_small} \\begin{footnotesize} \\begin{ttfamily} " + para else 'error' #should never occur end @@ -440,9 +440,9 @@ WOK elsif @@flag_group==true; @group_collect << para #<< "\n\n" end if x =~/(?:code|alt|verse|group)-end/ - regx=/(\\+marginpar\{\\+begin\{tiny\}\d+\\+end\{tiny\}\})/ + regx=/(\\+marginpar\{\\+begin\{tiny\}\d+\\+end\{tiny\}\})/ y=if para =~regx - regx.match(para)[1] + regx.match(para)[1] else '' end para.gsub!(regx,'') |