lib/write_xlsx/chart/axis.rb in write_xlsx-0.72.2 vs lib/write_xlsx/chart/axis.rb in write_xlsx-0.72.3.beta1
- old
+ new
@@ -72,12 +72,12 @@
if ptrue?(@num_format_linked)
source_linked = 1
end
attributes = [
- 'formatCode', @num_format,
- 'sourceLinked', source_linked
+ ['formatCode', @num_format],
+ ['sourceLinked', source_linked]
]
writer.empty_tag('c:numFmt', attributes)
end
@@ -104,11 +104,11 @@
if !cat_has_num_fmt && default_format
return ''
end
attributes = [
- 'formatCode', @num_format,
- 'sourceLinked', source_linked,
+ ['formatCode', @num_format],
+ ['sourceLinked', source_linked]
]
writer.empty_tag('c:numFmt', attributes)
end