we have problems with the compare function in Aspose Words for Java. It generates unnecessary and confusing row deletions and inserts.
This is our use case:
We want to create a word document using a table with the left side representing an old version of data and the right side showing changes made in the new version of our data. To achieve that, we create an “old” document with the old version on both sides in this table.
We then compare this document with a “new” document containing the old data on the left side and the new data on the right side in the table. This results in the changes made between the versions to be highlighted on the right side.
This neat trick works great when we try it with Microsoft Word but when we use Aspose we occasionally get highlightings that suggest that a row was removed and directly beneath a new row was added. This is wrong and inconsistent with Word, which correctly recognises, that merely some text changed in this row.
Attached you can find simple example inputs, the output we expect (because it was created with MS Word) and the output Aspose Words creates.
We are able to reproduce this problem with aspose-words-17.11 .
compareTables.zip (105.8 KB)