[Regression] Setting HtmlSaveOptions.ExportListLabels to ByHtmlTags no longer works in newer version of Aspose.Words

Hi,

We have been using HtmlSaveOptions.ExportListLabels = ByHtmlTags to save the list labels to ul/li nodes in order to display the list properly and consistently in HTML.

This worked very well in the past but after upgrading Aspose to the latest version, this setting seems to be ignored and the ul/li nodes are no longer produced - the labels are still produced as inline text.

Code:

var document = new Document(@".\test.docx");
var saveOptions = new HtmlSaveOptions
{
    ExportListLabels = ExportListLabels.ByHtmlTags
};

document.Save(@".\out23.9.0.html", saveOptions); 

The issue doesn’t happen in the past version (e.g. Aspose.Words 23.3.0, even Aspose.Words 23.6.0).

I’ve attached the files and outputs produced by both the old and new version of Aspose.Words, and a screenshot for your reference. Could you please help to take a look?

test.zip (17.9 KB)

Thanks,

@ServerSide527
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): WORDSNET-26113

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.