aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v3/odf.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2012-10-01 15:40:42 -0400
committerRalph Amissah <ralph@amissah.com>2012-10-01 15:40:42 -0400
commit32d32bf7ecfbc84a58d67a920135ef0bddfb9ee0 (patch)
tree8471d77cb4cb40030295bed0950e6338259eb832 /lib/sisu/v3/odf.rb
parentv3: cosmetic code, if, else, remove some semicolons (;) replace with newlines (diff)
v3: cosmetic code, if true ; x, remove semicolons replace with "then"
Diffstat (limited to 'lib/sisu/v3/odf.rb')
-rw-r--r--lib/sisu/v3/odf.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/sisu/v3/odf.rb b/lib/sisu/v3/odf.rb
index 2830b24d..d4d16b1d 100644
--- a/lib/sisu/v3/odf.rb
+++ b/lib/sisu/v3/odf.rb
@@ -137,7 +137,7 @@ module SiSU_ODF
if n =~/#{Mx[:br_line]}/
fix=n.split(/#{Mx[:br_line]}/) #watch #added
fix.each do |x|
- if x =~/\S+/; @n << x
+ if x =~/\S+/ then @n << x
end
end
else @n << n
@@ -271,7 +271,7 @@ module SiSU_ODF
dob.obj.scan(/(#{Mx[:lnk_o]}[ ]*(.+?)[ ]*#{Mx[:lnk_c]}(image))/)
else nil
end
- if m; m.each do |i|
+ if m then m.each do |i|
cont,url=i[1],i[2]
cont=cont.gsub(/([)(\]\[])/,"\\\\\\1").
gsub(/([+?])/,"\\\\\\1") # incorrect handling of +
@@ -385,8 +385,8 @@ module SiSU_ODF
str
end
def footnote(t_o)
- str=if defined? t_o.obj; t_o.obj
- elsif t_o.class==String; t_o
+ str=if defined? t_o.obj then t_o.obj
+ elsif t_o.class==String then t_o
end
if str
@astx||=10000
@@ -420,8 +420,8 @@ module SiSU_ODF
end
end
end
- if defined? t_o.obj; t_o.obj=str
- elsif t_o.class==String; t_o=str
+ if defined? t_o.obj then t_o.obj=str
+ elsif t_o.class==String then t_o=str
end
t_o
end