List rendering

Could y say that different in attached files that source.docx rendering html as “ol/li” and output.docx rendering list as “p”
http://joxi.ru/YmE11aPTw0499m
http://joxi.ru/LmGqqePtwexbBA

May be in output.docx something need set. I create output.docx by getting html from node in source.docx and copy them to new document.
docs.zip (19.9 KB)

@handmade,

You can ensure that all list labels are exported as HTML native elements by using the following code:

Document doc = new Document("D:\\Temp\\Docs\\output.docx");

HtmlSaveOptions opts = new HtmlSaveOptions(SaveFormat.Html);
opts.ExportListLabels = ExportListLabels.ByHtmlTags;
opts.PrettyFormat = true;

doc.Save("D:\\temp\\Docs\\18.8.html", opts);

I known about this options. I wondered why it renders differently without this option

@handmade,

We tested the scenario and have managed to reproduce the same problem on our end. For the sake of correction, we have logged this problem in our issue tracking system. The ID of this issue is WORDSNET-17374. We will further look into the details of this problem and will keep you updated on the status of this issue. We apologize for your inconvenience.

The issues you have found earlier (filed as WORDSNET-17374) have been fixed in this Aspose.Words for .NET 18.10 update and this Aspose.Words for Java 18.10 update.