👮 space inside parens
This commit is contained in:
@@ -52,8 +52,8 @@ module Squib
|
||||
def grid(box, draw)
|
||||
x, y, w, h = box.x, box.y, box.width, box.height
|
||||
use_cairo do |cc|
|
||||
(x..@width + w).step(w) { |ix| line_xy( ix, y - @height, ix, @height + y, draw) }
|
||||
(y..@height + h).step(h) { |iy| line_xy( x - @width, iy, @width + x, iy, draw) }
|
||||
(x..@width + w).step(w) { |ix| line_xy(ix, y - @height, ix, @height + y, draw) }
|
||||
(y..@height + h).step(h) { |iy| line_xy(x - @width, iy, @width + x, iy, draw) }
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ module Squib
|
||||
ink_extents.height = embed_h * Pango::SCALE if ink_extents.height == 0 #JUST embed, bug #134
|
||||
case valign.to_s.downcase
|
||||
when 'middle'
|
||||
Pango.pixels( (layout.height - ink_extents.height) / 2)
|
||||
Pango.pixels((layout.height - ink_extents.height) / 2)
|
||||
when 'bottom'
|
||||
Pango.pixels(layout.height - ink_extents.height)
|
||||
else
|
||||
|
||||
@@ -33,7 +33,7 @@ module Squib
|
||||
# Process the extends recursively
|
||||
# :nodoc:
|
||||
# @api private
|
||||
def self.recurse_extends(yml, key, visited )
|
||||
def self.recurse_extends(yml, key, visited)
|
||||
assert_not_visited(key, visited)
|
||||
return yml[key] unless has_extends?(yml, key)
|
||||
return yml[key] unless parents_exist?(yml, key)
|
||||
|
||||
Reference in New Issue
Block a user