From 4f4f7fc6bc21cb96bf2a5c1fceaa81c90b8b982e Mon Sep 17 00:00:00 2001 From: Pieter Sheth-Voss Date: Thu, 19 Mar 2015 22:49:24 -0400 Subject: [PATCH] Fix issue exporting font color --- bits/92_stylebuilder.js | 2 +- xlsx.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bits/92_stylebuilder.js b/bits/92_stylebuilder.js index a0dfbf7..35cbe1c 100644 --- a/bits/92_stylebuilder.js +++ b/bits/92_stylebuilder.js @@ -226,7 +226,7 @@ if ((typeof 'module' != 'undefined' && typeof require != 'undefined') || (typeo } } else if (attributes.color.rgb) { // not both rgb and theme - $font.append(XmlNode('rgb').attr('theme', attributes.color.rgb)) + $font.append(XmlNode('color').attr('rgb', attributes.color.rgb)) } } diff --git a/xlsx.js b/xlsx.js index e65b87b..74a055f 100644 --- a/xlsx.js +++ b/xlsx.js @@ -5727,7 +5727,7 @@ if ((typeof 'module' != 'undefined' && typeof require != 'undefined') || (typeo } } else if (attributes.color.rgb) { // not both rgb and theme - $font.append(XmlNode('rgb').attr('theme', attributes.color.rgb)) + $font.append(XmlNode('color').attr('rgb', attributes.color.rgb)) } }