Using Aspose Cells for Java, version 17.12.4.
Input and output files attached. Sample code:
Workbook workbook = new Workbook("input.xlsx");
Worksheet sheet = workbook.getWorksheets().get("Entry points");
HtmlSaveOptions options = new HtmlSaveOptions();
In the source workbook, for the sheet we are saving, note that the column headers cells (C3:T3) have “Wrap Text” enabled.
For example, if you look in the result HTML file produced by Aspose Cells for cell C3, you’ll see:
<td class='x4855'>Quarterly Solvency II reporting Solo</td>
Aspose Cells seems to have replaced all space characters by non-breaking spaces ( ). In addition, looking up the declaration of style “x4854” gives:
Here “word-wrap:break-word” has been added. As a result, in the generated HTML, the wrapping is effectively by character, instead of by word.
The end result is that the text becomes harder to read. Since the HTML produced by Excel does have proper word-wrap behavior, I assume this is a bug.html-word-wrap-17.12.4.zip (1.4 MB)