natergj / excel4node

Node module to allow for easy Excel file creation
MIT License
1.38k stars 215 forks source link

New line in a cell with more than 255 characters #323

Open duanyukai opened 4 years ago

duanyukai commented 4 years ago

I've found this tricky way to insert new line in a cell with excel4node. ws.cell(1, 1).formula('="first line"&CHAR(10)&"second line"'); But when the cell has more than 255 characters, the cell content disappeared. Though I can split the text and use CONCATENATE, but is there an more elegant way to insert a long piece of text with new line?