Hi,
when exporting simple word documents containing text in standard style and a bullet list also based on standard style to HTML, the bullet list items get extra <span class="font-family: Arial;">
tags.
<!DOCTYPE html>
<html lang="de-DE">
<head>
<meta charset="UTF-8" />
<meta name="generator" content="Aspose.Words for Java 23.4.0" />
<title>
</title>
</head>
<body style="font-family:Arial; font-size:10pt">
<div>
<p style="margin-top:0pt; margin-bottom:0pt">
<span>This is text in standard format style.</span>
</p>
<ul style="margin:0pt; padding-left:0pt">
<li style="margin-left:26.56pt; padding-left:9.44pt; font-family:serif; -aw-font-family:'Symbol'; -aw-font-weight:normal; -aw-number-format:''">
<span style="font-family:Arial">This is a bullet list item based on standard style.</span>
</li>
</ul>
</div>
</body>
</html>
It looks like a bug to me, but maybe it’s the expected behavior. If it’s the latter one, is there a possibility to disable this feature?
The problem here is, that if you re-insert this HTML snippet in an other word document using DocumentBuilder.insertHtml(…) and this document has a different base font, the bullet list items still have their Arial font.
We are using the HTML export within a WYSIWYG editor to let the user modify the snippet, therefore we cannot insert the original word document directly with DocumentBuilder.insertDocument(…).
Thanks for your help!
Best regards,
Andreas
test.docx (14.9 KB)