opensagres / xdocreport

XDocReport means XML Document reporting. It's Java API to merge XML document created with MS Office (docx) or OpenOffice (odt), LibreOffice (odt) with a Java model to generate report and convert it if you need to another format (PDF, XHTML...).
https://github.com/opensagres/xdocreport
1.19k stars 369 forks source link

Composite numeric list is not converted correctly #627

Open Meng263 opened 8 months ago

Meng263 commented 8 months ago

I tried converting docx to html using xdocreport converter, but I have problem with numeric lists: I used fr.opensagres.xdocreport version 2.0.4

XWPFDocument doc = new XWPFDocument(fs);
XHTMLConverter.getInstance().convert(doc, out, options);

I have docx document with automatic numeric list automatic numbered list.docx my docx doc content is:

        1.1. first
        1.2. second
        1.3. third

output html is

1.%2. first

2.%2. second

3.%2. third