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

Free Support Forum - aspose.com

[Compare] Paragraphs changed to list items incorrect bullet formatting in Word Compare document

When comparing two documents (doc1 with doc2) - indentation level of first element of the list is incorrect.
doc1 - list items are simple paragraphs
doc2 - same items changed to list and custom indentation setting applied for its items.
image.png (16.4 KB)

Result: first item of the list is being assigned the indentation of the list (parent of list items) and not the list item.
image.png (6.5 KB)

Code:

CompareOptions compareOptions = new CompareOptions();
compareOptions.setGranularity(Granularity.CHAR_LEVEL);

doc1.compare(doc2, " ", Calendar.getInstance().getTime(), compareOptions);

compare from aspose.docx (9.5 KB)
doc1.docx (8.3 KB)
doc2.docx (9.5 KB)

@PROCUREMENT2_DFINSOLUTIONS_COM Thank you for reporting this problem to us. For a sake of correction it has been logged as WORDSNET-23766. We will keep you informed and let you know once it is resolved.

The issues you have found earlier (filed as WORDSNET-23766) have been fixed in this Aspose.Words for Java 22.5 update also available on Maven.