lib/write_xlsx/chart/pie.rb in write_xlsx-0.72.2 vs lib/write_xlsx/chart/pie.rb in write_xlsx-0.72.3.beta1
- old
+ new
@@ -139,11 +139,11 @@
# Write the <a:pPr> element for legends.
#
def write_a_p_pr_legend
rtl = 0
- attributes = ['rtl', rtl]
+ attributes = [ ['rtl', rtl] ]
@writer.tag_elements('a:pPr', attributes) do
# Write the a:defRPr element.
write_a_def_rpr
end
@@ -153,21 +153,21 @@
# Write the <c:varyColors> element.
#
def write_vary_colors
val = 1
- attributes = ['val', val]
+ attributes = [ ['val', val] ]
@writer.empty_tag('c:varyColors', attributes)
end
#
# Write the <c:firstSliceAng> element.
#
def write_first_slice_ang
val = 0
- attributes = ['val', val]
+ attributes = [ ['val', val] ]
@writer.empty_tag('c:firstSliceAng', attributes)
end
end
end