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)