👮 fix extra spaces
This commit is contained in:
@@ -22,7 +22,7 @@ Squib::Deck.new(cards: num_cards) do
|
||||
background color: :white
|
||||
rect # card border
|
||||
text str: data['Name'], font: 'Arial 54'
|
||||
save_sheet prefix: 'sample_csv_qty_', columns: 4
|
||||
save_sheet prefix: 'sample_csv_qty_', columns: 4
|
||||
end
|
||||
|
||||
# Additionally, CSV supports inline data specifically
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@ Squib::Deck.new(cards: num_cards) do
|
||||
background color: :white
|
||||
rect # card border
|
||||
text str: data['Name'], font: 'Arial 54'
|
||||
save_sheet prefix: 'sample_xlsx_qty_', columns: 4
|
||||
save_sheet prefix: 'sample_xlsx_qty_', columns: 4
|
||||
end
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -66,7 +66,7 @@ end
|
||||
Squib::Deck.new do
|
||||
use_layout file: 'custom-layout.yml'
|
||||
use_layout file: 'custom-layout2.yml'
|
||||
text str: 'The Title', layout: :title # from custom-layout.yml
|
||||
text str: 'The Subtitle', layout: :subtitle # redefined in custom-layout2.yml
|
||||
text str: 'The Title', layout: :title # from custom-layout.yml
|
||||
text str: 'The Subtitle', layout: :subtitle # redefined in custom-layout2.yml
|
||||
save_png prefix: 'layout3_'
|
||||
end
|
||||
|
||||
@@ -60,7 +60,7 @@ Squib::Deck.new(width: 825, height: 1125, cards: 1, config: 'load_images_config.
|
||||
|
||||
# WARNING! If you choose to use the SVG ID, the x-y coordinates are still
|
||||
# relative to the SVG page. See this example in an SVG editor
|
||||
svg file: 'offset.svg', id: 'thing', x: 0, y: 0, width: 600, height: 600
|
||||
svg file: 'offset.svg', id: 'thing', x: 0, y: 0, width: 600, height: 600
|
||||
|
||||
# Over 15 different blending operators are supported.
|
||||
# See http://cairographics.org/operators
|
||||
|
||||
+1
-1
@@ -14,7 +14,7 @@ Squib::Deck.new(height: (game_chars.size / cols + 1) * cell_height,
|
||||
text str: 'Game-related UTF8 icons. Generated by Squib, https://github.com/andymeneely/squib'
|
||||
game_chars.each_with_index do |c, i|
|
||||
rect fill_color: %w(#eeee #ffff)[i % 2],
|
||||
width: cell_width, height: cell_height, x: x, y: y
|
||||
width: cell_width, height: cell_height, x: x, y: y
|
||||
text str: c.inspect, font: 'Sans 42', x: x, y: y
|
||||
text str: c, font: 'Sans,Segoe UI Symbol 42', x: x + 300, y: y
|
||||
x += cell_width
|
||||
|
||||
Reference in New Issue
Block a user