Track Changes Showing Full Sentence Rewrite

Hello,

I am having an issue with the Replace method and Track Changes. Whenever I try to edit content that is within a sentence containing footnotes, the tracked changes show more than just the modified content. How can i resolve this?

 Document docA = await ProcessingFunctionHelpers.LoadDocumentAsync(request.Stream, _logger);
 Document clone = docA.Clone();


 string rp = "Cox ABG Group, S.A. (fka Cox Energy Solar S.A., aka Grupo Cox, aka Cox Energy; “Cox”) is the ultimate parent company of the Cox corporate group, a conglomerate of renewable energy utility companies in Europe and Latin America.";

 string og = "Cox ABG Group, S.A. (fka Cox Energy Solar S.A., aka Grupo Cox, aka Cox Energy; “Cox”) is the ultimate parent company of the Cox corporate group, a conglomerate of renewable energy utilities companies in Europe and Latin America.";

 int howMany = docA.Range.Replace(og, rp);
 int ignore = docA.Range.Replace(og, rp, new Aspose.Words.Replacing.FindReplaceOptions()
 {
     IgnoreFootnotes = true,
     FindWholeWordsOnly = false,
     IgnoreFieldCodes = true,
     MatchCase = true,
     IgnoreShapes = true
 });

 docA.Compare(clone, "GPT", DateTime.Now);

footnote-testing.docx (15.3 KB)

@chrisbluemorgan
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): WORDSNET-27608

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.