Inconsistent diff display in Version History when deleting numbered list items and renumbering

XMLWordPrintable

    • 1
    • Severity 3 - Minor
    • 2

      Issue Summary

      The version history comparison (diff) does not consistently show deleted text when a line in a numbered list is deleted and subsequent lines are renumbered. Depending on how the edit is performed, the deleted content does not appear with a strikethrough, making it difficult to track changes.

      Steps to Reproduce

      1. Create a page with the content below:
        ex.)
        1 aaaa
        2 bbbb
        3 cccc
        4 dddd

             2. Publish the page.Edit the page and delete the entire first line "1 aaaa".
             3. Change the remaining numbers from "2, 3" to "1, 2" (e.g., "1 bbbb", "2 cccc").
             4. Publish the update and view the Version History comparison.

      Expected Results

      The text "aaaa" should be shown as deleted (with a strikethrough) in the diff view.

      Actual Results

      The deletion of "aaaa" is not visible. The diff only highlights the changes in the remaining lines as if they were new additions or modifications, losing the record of the deleted text.

      Workaround

      When deleting a line, delete only the text content first and publish, or avoid manual renumbering if possible to help the diff engine track the line identity.

      For example in this page,

      ex.)
      1 aaaa
      2 bbbb
      3 cccc
      4 dddd
      1. Edit the page and delete "aaaa 2".
      2. Change the remaining numbers from "3, 4" to "2, 3" (e.g., "2 cccc", "3 dddd").
      3. Publish the update and view the Version History comparison.

              Assignee:
              Unassigned
              Reporter:
              Unassigned
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: