Numbering error when converting DOCX to HTML word

I am using version 19.3.0.0.
During the conversion from DOCX to HTML I always have the following Numberring problem:
-On the DOCX file:
1.1.
1.1.1.
a.
b.
1.1.2.
a.
b.

-Convert to HTML
1.1
1.1.1
a.
b.
2.
a.
b.

This is the same if we replace a,b with Bullets

I have to add a blank line between a,b (bullets) and the sequence number on the DOCX file to not get it, for example:
1.1.
1.1.1.
a.
b.

1.1.2.


If anyone has encountered this situation and how to handle it please help me.
Thank you

@thong Could you please attach your input and output document here for testing? We will check the issue and provide you more information.

1 Like

I send the test file
VanBanChinh (1)8ea13478-b10e-455d-a736-a0b51a46d738.DOCX (50.7 KB)

The content I want to process:

Content after converting

@thong Thank you for additional information. The problem has been logged as WORDSNET-23706. We will keep you informed and let you know once it is resolved.
As a temporary workaround, you can set ExportListLabels.AsInlineText. In this case list labels are exported properly to HTML:

Document doc = new Document(@"C:\Temp\in.docx");
HtmlSaveOptions options = new HtmlSaveOptions();
options.ExportListLabels = ExportListLabels.AsInlineText;
doc.Save(@"C:\Temp\out.html", options);
1 Like

The issues you have found earlier (filed as WORDSNET-23706) have been fixed in this Aspose.Words for .NET 22.7 update also available on NuGet.

1 Like