aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v0/texpdf.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sisu/v0/texpdf.rb')
-rw-r--r--lib/sisu/v0/texpdf.rb12
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,'')