Converting DOCX with revisions to HTML does not include font formatting changes

Hi, we are using the document comparator functionality from the Aspose.Words For Java, v22.12. and have noticed that when we compare 2 documents, then save the compared document as an HTML file, it is missing font formatting changes from the modified version of the original file.
e.g.
doc1.compare(doc2 …)

doc1.save(“DocWithRevisions.html”, SaveFormat.HTML),

It can be seen that revisions from doc1 contain the formatting changes, e.g. ‘FORMAT_CHANGE’ such as ‘Font: Italic’, ‘Font color: Red’, etc. When viewing the ‘DocWithRevisions.html’ we see the <ins> and <del> elements, for the text that has been changed, but none of the font formatting changes.

e.g.

<del style="color:#b5082e; ..."><span>50%</span></del>
<ins style="color:#b5082e; ..."><span>5</span></ins>
<ins style="color:#b5082e; ..."><span>6</span></ins>
<ins style="color:#b5082e; ..."><span>%</span></ins>
<span> of the gross annual salary or contract fee of the employee or contractor immediately prior to termination of their employment or engagement with the other party.</span>

Interesting, saving the modified document as HTML, e.g. doc2.save(“ModifiedDoc.html”, SaveFormat.HTML), does include the font formatting changes that were made to this document and this can be seen in the HTML.

e.g.

<span style="color:#ff0000">56% of the </span>
<span style="font-style:italic; color:#ff0000">gross annual salary</span>
<span style="color:#ff0000"> or </span>
<span style="font-style:italic; color:#ff0000">contract fee</span>
<span style="color:#ff0000"> of the employee or contractor </span>

This means that a user would be unaware that there font formatting changes from viewing the compared document output.

We cannot see any output options that could provide this detail and would be grateful of any help you can offer, I have attached 2 sample documents (below).

doc1.docx (18.4 KB)
doc1_modified.docx (18.6 KB)

Many thanks,
Paul

@pthorp Unfortunately, Aspose.Words does not support export format revision to HTML. Only insert and delete revisions are currently supported.