forked from sheetjs/sheetjs
Fix issue exporting font color
This commit is contained in:
parent
9b76f6b1f5
commit
4f4f7fc6bc
@ -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))
|
||||
}
|
||||
}
|
||||
|
||||
|
2
xlsx.js
2
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))
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user