We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Multilevel List Renders Incorrectly | DOCX to HTML Conversion using Java

I have a word CPM-12901.zip (15.1 KB)
with a multilevel list aligned to the right.
When converted to HTML via aspose.word:

    Document doc = new Document(dataDir + String.format(INPUT, name));
    HtmlSaveOptions htmlSaveOptions = new HtmlSaveOptions();
    htmlSaveOptions.setExportListLabels(ExportListLabels.BY_HTML_TAGS);
    htmlSaveOptions.setExportImagesAsBase64(true);
    htmlSaveOptions.setExportPageSetup(true);
    htmlSaveOptions.setExportPageMargins(true);
    htmlSaveOptions.setPrettyFormat(true);

    //Save the document to HTML
    doc.save(dataDir + String.format(HTML, name), htmlSaveOptions);

I got a bad format (the left indentation of the third level item is smaller than the one from first and second level).
PS: if list items are aligned to the left, the generated HTML has the expected format

@mohamed_hamdi

We have tested the scenario and managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-22602. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.