Open bigNeoneo opened 5 years ago
I didn't think of that use case. Here is an temporary fix that should work (not tested):
const RichText = require('xlsx-Populate').RichText;
const cell = workbook.sheet(0).cell('A1');
cell.value(new RichText()).add(' leading space');
cell.value().get(0)._valueNode.attributes[xml:space'] = 'preserve';
If not, try to set cell.style('wrapText', true);
Thx for this good tools firstly. below, I want a different style in one sentence. so I wrote this but I got this my leading spaces in RichText is missed. Can U help?