The left and right documents contain only a hyperlink and are identical except for the presence of the w:history
attribute. This attribute causes document comparison to show the hyperlink as being deleted, and then immediately re-added. The deleted and re-added hyperlinks are not identical: one has the \h
switch, and the other does not.
My understanding is that \h
is a display-formatting flag, so the deletion/re-addition isn’t even representing the change in attribute properly. (But please correct me if I’m wrong here.)
Desired result: correctly represent the change by deleting/inserting w:hyperlinks
(as in the issue linked above). Acceptable but less desired result: don’t generate an insertion/deletion if it can’t/doesn’t represent the change that actually happened to the w:hyperlink
.
Java, 22.1.
right.docx (11.1 KB)
left.docx (11.1 KB)
compared.docx (10.8 KB)
Filed internally as #8479.