I've recently noticed that there is some strange behavior with how InCopy (and presumably InDesign) use Track Changes, but wanted to run it by people here before reporting it as a bug.
Here is the text view of an example where I have added text (ABCDEF) proceeded and followed by some deleted text (the K's).
![Screen Shot 2016-02-24 at 09.49.22.png]()
My expectations here would be that this would represent 3 changes:
- The deleted K's.
- The added letters ABCDEF
- The deleted K's.
However, functionally and in the code, this is actually being rendered as 4 changes:
- The deleted K's.
- The added letter A
- The added letters BCDEF
- The deleted K's.
It seems that if added text is proceeded by deleted text the first character following the deleted text will always be defined as a separate change. Below is the code in the ICML file that shows this.
<Change Date="2016-02-24T09:36:21" ChangeType="DeletedText" UserName="User 1" AppliedDocumentUser="dDocumentUser0"> <ParagraphStyleRange AppliedParagraphStyle="ParagraphStyle/$ID/NormalParagraphStyle"> <CharacterStyleRange AppliedCharacterStyle="CharacterStyle/$ID/[No character style]"> <Content>KKKKKKKKKK</Content> </CharacterStyleRange> </ParagraphStyleRange> </Change> <Change Date="2016-02-24T09:36:09" ChangeType="InsertedText" UserName="User 1" AppliedDocumentUser="dDocumentUser0"> <Content>A</Content> </Change> <Change Date="2016-02-24T09:36:09" ChangeType="InsertedText" UserName="User 1" AppliedDocumentUser="dDocumentUser0"> <Content>BCDEF</Content> </Change> <Change Date="2016-02-24T09:36:09" ChangeType="DeletedText" UserName="User 1" AppliedDocumentUser="dDocumentUser0"> <ParagraphStyleRange AppliedParagraphStyle="ParagraphStyle/$ID/NormalParagraphStyle"> <CharacterStyleRange AppliedCharacterStyle="CharacterStyle/$ID/[No character style]"> <Content>KKKKKKKKK</Content> </CharacterStyleRange> </ParagraphStyleRange> </Change>
Note that the first character is made into a separate change both when the deletion is made before the text is added and after. So if I later remove the letter C the letter D will then become an isolated change separate from DEF.
When it comes to accepting the changes the behavior is even more unpredictable. If I select just the letter A and then choose to accept that change it also accepts the proceeding deleted text change:
![Screen Shot 2016-02-24 at 09.59.54.png]()
Here I select the letter A and then "Accept Change". I expect only the A to no longer reflect a change that has been made. However...
![Screen Shot 2016-02-24 at 10.00.07.png]()
...the actual result is that the A and also all of the proceeding deleted text is accepted.
Can anyone offer some input on this at all? Am I misunderstanding something or is deleted text "cannabalizing" the first character that succeeds it and incorporating it into its own change? I imagine this can cause all sorts of issues if it is indeed a bug. (Note that this is present in CC2015 as well as quite a number of releases going back.)
Thanks!