Text after a <br> tag within an <em> tag is not emphasized when converting an HTML document to a Workbook

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:

  1. test.html rendered in a browser
  2. 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!

@mclark,
This issue is reproduced here and logged in our database for further investigation. We will notify you here once any feedback is ready for sharing.

This issue is logged as:
CELLSJAVA-43483 - Text after a <br> tag within an <em> tag is not emphasized when converting an HTML document to a Workbook

@mclark,

This is to inform you that the issue has been resolved. After performing QA and incorporating other enhancements and fixes, we will provide a fixed version within a few days.

@mclark,
Please try our latest version/fix: Aspose.Cells for Java v21.7.3 (attached)
aspose-cells-21.7.3-java.zip (7.4 MB)

Your issue should be fixed now.
Let us know your feedback.

The issues you have found earlier (filed as CELLSJAVA-43483) have been fixed in this update. This message was posted using Bugs notification tool by johnson.shi