examples/shape3.rb in write_xlsx-1.09.4 vs examples/shape3.rb in write_xlsx-1.09.5
- old
+ new
@@ -14,15 +14,15 @@
workbook = WriteXLSX.new('shape3.xlsx')
worksheet = workbook.add_worksheet
normal = workbook.add_shape(
- :name => 'chip',
- :type => 'diamond',
- :text => 'Normal',
- :width => 100,
- :height => 100
- )
+ :name => 'chip',
+ :type => 'diamond',
+ :text => 'Normal',
+ :width => 100,
+ :height => 100
+)
worksheet.insert_shape('A1', normal, 50, 50)
normal.text = 'Scaled 3w x 2h'
normal.name = 'Hope'
worksheet.insert_shape('A1', normal, 250, 50, 3, 2)