We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using line break characters in the header of a table generates an error when trying to open the generated file on Mac.
Lib version: 4.2.1
const workbook = new ExcelJS.Workbook(); const worksheet = workbook.addWorksheet(title, { properties: { defaultColWidth: 30, }, pageSetup: { paperSize: 9, orientation: 'landscape', }, }); worksheet.addTable({ name: 'table', ref: 'A1', headerRow: true, style: { theme: 'TableStyleLight2', showRowStripes: true, }, columns: [ { name: 'Test\r\nmultiple\r\nlines' }, ], rows: [ ['Test'], ], }); worksheet.getCell('A1').alignment = { wrapText: true }; await workbook.xlsx.writeFile('test.xlsx');
After the file gets stored, we can open it and see its content.
An error pops up:
The text was updated successfully, but these errors were encountered:
Is only Mac affected by this? Has anybody found this happening in another OS?
Sorry, something went wrong.
No branches or pull requests
🐛 Bug Report
Using line break characters in the header of a table generates an error when trying to open the generated file on Mac.
Lib version: 4.2.1
Steps To Reproduce
The expected behaviour:
After the file gets stored, we can open it and see its content.
The actual behaviour:
An error pops up:
The text was updated successfully, but these errors were encountered: