html-to-xlsx icon indicating copy to clipboard operation
html-to-xlsx copied to clipboard

Cells with line breaks are displayed incorrectly

Open Paklosha opened this issue 3 years ago • 1 comments

After converting a cell with multiple rows, initially the value in the cell is displayed as a single row. Tried the br pre tags and a few css style approaches

image

Paklosha avatar Oct 21 '21 14:10 Paklosha

hi! for line breaks the cell needs to have text wrap enabled, you can do that by adding overflow: scroll style to the cell

<td style="overflow: scroll">Hello<br />world</td>

bjrmatos avatar Oct 21 '21 16:10 bjrmatos