Page 1 of 1

CompareDocumments failing

PostPosted: Mon Apr 15, 2019 10:39 am
by alansantospi
Hi,
I noticed that CompareDocumments is failing when trying to compare two docx files with more than two paragraphs.
Curiouslly, when threre is less than two paragraphs it works perfectly.

Re: CompareDocumments failing

PostPosted: Mon Apr 15, 2019 7:53 pm
by jason
Maybe something to do with https://github.com/plutext/docx4j/blob/ ... .java#L194

logs against your docs say:

Code: Select all
18:44:46.439 [main] DEBUG com.topologi.diffx.Docx4jDriver - top level LCS - creating EventSequences...
18:44:46.454 [main] DEBUG com.topologi.diffx.Docx4jDriver - top level LCS - determining top level LCS...
18:44:46.457 [main] DEBUG com.topologi.diffx.Docx4jDriver - CHANGE left 1,3 right 1,3
18:44:46.457 [main] DEBUG com.topologi.diffx.Docx4jDriver - CHANGE left 5,1 right 5,1
18:44:46.457 [main] DEBUG com.topologi.diffx.Docx4jDriver - top level LCS done; now performing child actions ...


I'm afraid you'll need to look into this yourself as I don't have any spare time right now, sorry.

Re: CompareDocumments failing

PostPosted: Sun Apr 28, 2019 11:53 pm
by alansantospi
Ok but the link you provided is not working.

Re: CompareDocumments failing

PostPosted: Mon Apr 29, 2019 10:22 am
by jason
Source reorganised since then; new link: https://github.com/plutext/docx4j/blob/ ... .java#L194