Page 1 of 1

repeated list number with roundtrip docx->xhtml->docx change

PostPosted: Tue May 03, 2016 1:16 pm
by shizhang
Hi,

When I tried the docx-html-editor project (https://github.com/plutext/docx-html-editor) , I met one problem on the numbering list. It works well to transform the docx document (see attached document) to the xhtml and displayed well in the ckEditor (CKEditor 4.5.7).
"
1. One2

2. Two

3. Three
"

However when I click the submit button and got the xhtml->docx document, the numbering repeated as below.
"
1. 1. One2
2. 2. Two
3. 3. Three
"

I used the sample document from the post "Converting numbering list to html" xhtml-import-f28/converting-numbering-list-to-html-t2284.html ), and docx4j and docx4j-ImportXHTML jar files with 3.2.2 version.

<dependency>
<groupId>org.docx4j</groupId>
<artifactId>docx4j</artifactId>
<version>3.2.2</version>
</dependency>

<dependency>
<groupId>org.docx4j</groupId>
<artifactId>docx4j-ImportXHTML</artifactId>
<version>3.2.2</version>
</dependency>

Any helps are appreciated!

Thanks,
Steve