I would like to add a newline in a cell using ExcelJS (using the newest version 4.4).
I have tested with \r\n, \r and \n and all of them gives me the same results: The newline is visible in the formula-bar, but not directly in the cell itself.
It displays it in the cell after you manually click on the formula bar.
My question is: Can this be resolved, if yes, how?
Example
In Typescript using the newline commands:
How it is visible in Excel:
Please note that in the formula bar it is displayed correctly.
When clicking in the Formula bar and next clicking to another cell it shows this:
Any ideas how this can be resolved so the newline is immediately visible in the cell itself?



="ab" & CHAR(10) & "cd"it does't until "wrap text" is set.