aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v5/defaults.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2014-01-06 22:42:31 -0500
committerRalph Amissah <ralph@amissah.com>2014-01-06 22:42:31 -0500
commit0e42ce6f34c3cfdf370f439f58c4e3de8b05ea92 (patch)
tree6fc9ffb3f627a91138a1479d6fa144687b7b45e3 /lib/sisu/v5/defaults.rb
parentv5: docbook, fictionbook, some tidying (diff)
v5: cosmetic code, case statement
Diffstat (limited to 'lib/sisu/v5/defaults.rb')
-rw-r--r--lib/sisu/v5/defaults.rb20
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/sisu/v5/defaults.rb b/lib/sisu/v5/defaults.rb
index aad8970d..fd56c2c4 100644
--- a/lib/sisu/v5/defaults.rb
+++ b/lib/sisu/v5/defaults.rb
@@ -564,8 +564,8 @@ module SiSU_Viz
if italics_list
r=italics_list.dup
x=case r
- when /\/i$/; 'i'
- else ''
+ when /\/i$/ then 'i'
+ else ''
end
r=r.gsub(/^\/(.+?)\/i?/,'\1').
gsub(/\(/,'(?:') # avoid need to escape use of brackets within regex provided
@@ -585,8 +585,8 @@ module SiSU_Viz
if bold_list
r=bold_list.dup
x=case r
- when /\/i$/; 'i'
- else ''
+ when /\/i$/ then 'i'
+ else ''
end
r.gsub(/^\/(.+?)\/i?/,'\1').
gsub(/\(/,'(?:') # avoid need to escape use of brackets within regex provided
@@ -1199,12 +1199,12 @@ WOK
end
def dimensions
case @papersize
- when /a4/; a4
- when /letter/; letter
- when /legal/; legal
- when /b5/; b5
- when /a5/; a5
- else a4
+ when /a4/ then a4
+ when /letter/ then letter
+ when /legal/ then legal
+ when /b5/ then b5
+ when /a5/ then a5
+ else a4
end
end
end