diff options
author | Ralph Amissah <ralph@amissah.com> | 2007-09-04 20:50:41 +0100 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2007-09-04 20:50:41 +0100 |
commit | bfa0cb605d4ada05e224bf7ec5ba013d568c98be (patch) | |
tree | 522ad910ee572b7dc082daa673410b042f446c5e /lib/sisu/v0/texpdf.rb | |
parent | Merge branch 'upstream' into debian/sid (diff) | |
parent | comment (diff) |
Merge branch 'upstream' into debian/sid
Diffstat (limited to 'lib/sisu/v0/texpdf.rb')
-rw-r--r-- | lib/sisu/v0/texpdf.rb | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/sisu/v0/texpdf.rb b/lib/sisu/v0/texpdf.rb index 4faab502..cd4c2ec1 100644 --- a/lib/sisu/v0/texpdf.rb +++ b/lib/sisu/v0/texpdf.rb @@ -459,7 +459,16 @@ WOK else '' end para.gsub!(regx,'') - @group_collect.each{ |x| x.gsub!(/(<:\S+>|<!.*?!>|<!>)/,' ') } + #@group_collect.each{ |x| x.gsub!(/(<:\S+>|<!.*?!>|<!>)/,' ') } + group_collect=[] + group_collect << '\begin{footnotesize} ' unless @@flag_code + @group_collect.each do |x| + x.gsub!(/(<:\S+>|<!.*?!>|<!>)/,' ') + x=x.split(/ \\\\ /) + group_collect << x + end + group_collect << ' \end{footnotesize} ' unless @@flag_code + @group_collect=group_collect.flatten @lineone.gsub!(/(<:\S+>|<!.*?!>|<!>)/,' ') #@group_collect.each{ |x| x.gsub!(/(.#{@@tilde}\S*\s*|<:\S+>|<!.*?!>|<!>)/,' ') } #@lineone.gsub!(/(.#{@@tilde}\S*\s*|<:\S+>|<!.*?!>|<!>)/,' ') |