Tutorial - Snapshot

Running through the Tutorial and in the section related to Snapshots. I added text and deleted texts as instructed. In the inspector window under compare the formatting is a bit screwed up. The added text is below the deleted text.

The right and left arrows to move between the changes doesn’t quite work correctly either. I added one sentence and deleted the text as described, but it navigates as if there are more changes than that.

I just came here to post the exact same issue In 3.1.1.

In tutorial/snapshots I got to the part where you type some text and then “Delete the text in the following line”.

I added some text ADDING A NEW LINE. Then I triple clicked the line thus deleting the whole paragraph.

The resulting compare output, though strictly correct, was confusing and not the smallest set of changes which could have been shown.

Not adding a newline after my inserted text produced a more sensible output.

Ed

On further experimentation, ticking only one of clause/paragraph/word gave sensible output, Perhaps a bit more text between the two edits might make the output quality less sensitive?

If you delete the blank line that “DELETE ME!” was on, the results may look a little odd - they look better if you just delete the “DELETE ME!” text and leave the line empty. The problem is that the whole thing is being cut up (based on the paragraph/clause etc selection) and passed through macOS’s diff command-line tool. It’s a very complex process and may not always look too pretty, because of the difficulties involved for a computer in determining line-by-line changes. Whereas a human can look at the text and clearly see that these paragraphs are the same while these have been added or deleted, a computer has no such easy comprehension and so has to parse things by units. In this particular case, the “by word” units make it a little more awkward. It may be that it would make more sense for me to turn off “by word” as the default - I’ll think about that.

Thanks and all the best,
Keith