exceljs/exceljs

White text and borders being changed to black

Rycochet opened this issue · 4 comments

Might be related to #261

In Excel: change a cell colour to anything that it'll show up on, then change the text colour and border to (pure) white.

Saving from ExcelJS changes all the white text and border colours to black (I'd guess some default matching going on there). Other colours work normally.

Not checked against fill / patterns.

How Bizarre! I've reproduced this and the effects are weird.
I'll start looking into it straight away - apparently some colour management magic that I've missed.
Thanks for the heads up

Can confirm that you've fixed it in c51811a - that looks painful!! Will leave this open till you push a release :-)

@Rycochet - I've just published 0.4.2 which should fix this (and the other) issues.
Turned out to be a combination of two things. First - I wasn't rendering theme="0" properly, and second - if you read one excel file, there's no guarantee that the default theme file used by ExcelJS is in any way compatable with the original. So I've added a workaround to copy the theme files
Could you check whether this resolves your issue?

Looks good :-)