Hi Support Team,
Aspose Cells for Java version: 21.5.5
When creating a workbook by passing an HTML document to the constructor, any text after a <br>
tag within an <em>
tag is not emphasized.
Workbook workbook = new Workbook("test.html");
workbook.save("test.xlsx");
test.html:
<html>
<head></head>
<body>
<table border="1">
<thead>
<tr>
<th>Regular text</th>
<th><em>Emphasized text</em></th>
<th>
<em>
Emphasized text<br>
with two<br>
line breaks
</em>
</th>
</tr>
</thead>
<tbody>
<tr>
<td>Regular text</td>
<td><em>Emphasized text</em></td>
<td>
<em>
Emphasized text<br>
with two<br>
line breaks
</em>
</td>
</tr>
</tbody>
</table>
</body>
</html>
Attached are two images:
- test.html rendered in a browser
- The contents of text.xlsx
html_output_in_browser.jpg (15.4 KB)
generated_xlsx_content.jpg (41.7 KB)
Any advice would be appreciated!