Hello,
Thank you for your inquiry.
I have tested the code you provided using the latest commercial version of Spire.Office(
Spire.Office for Java Version:8.11.3), but I was unable to reproduce the issue you mentioned. Attached below are my test code and the resulting files for your reference.
- Code: Select all
String input = "<ol>\n" +
"<li>A</li>\n" +
"<li>B</li>\n" +
"</ol>\n" +
"<ul>\n" +
"<li>C</li>\n" +
"<li>D</li>\n" +
"<li>E</li>\n" +
"</ul>";
Document document = new Document();
Paragraph paragraph = document.addSection().addParagraph();
paragraph.appendHTML(input);
document.saveToFile("result.docx", FileFormat.Docx_2013);
Please review the code and files to ensure that everything is functioning as expected. If you have any further questions or encounter any issues, please don't hesitate to reach out to me. I'll be happy to assist you further.
Sincerely,
Annika
E-iceblue support team
Login to view the files attached to this post.