Uploaded image for project: 'OASIS Open Document Format for Office Applications (OpenDocument) TC'
  1. OASIS Open Document Format for Office Applications (OpenDocument) TC
  2. OFFICE-2796

5.5.4 text:deletion - second item in list: "If the change mark is inside a heading, proceed as above, except adapt the end tags to match their new counterparts." ?

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Applied
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: ODF 1.2 CD 05
    • Fix Version/s: ODF 1.2 CD 06
    • Component/s: Text
    • Labels:
      None
    • Proposal:
      Hide

      Replace:
      "To reconstruct the text before a deletion took place:

      • If the change mark is inside a paragraph, insert the text content of the <text:deletion> element as if the beginning <text> and final </text> tags were missing.
      • If the change mark is inside a heading, proceed as above, except adapt the end tags to match their new counterparts.
      • Otherwise, copy the text content of the <text:deletion> element in place of the change mark."
        by
        "To reconstruct the text before a deletion took place:
      • If the change mark is inside a paragraph, insert the content that was deleted, but remove all leading start tags up to and including the first <text> element and all trailing end tags up to and including the last </text> or </text:h> element. If the last trailing element is a </text:h>, change the end tag </text> following this insertion to a </text:h> element.
      • If the change mark is inside a heading, insert the content that was deleted, but remove all leading start tags up to and including the first <text:h> element and all trailing end tags up to and including the last </text:h> or </text> element. If the last trailing element is a </text>, change the end tag </text:h> following this insertion to a </text> element.
      • Otherwise, copy the text content of the <text:deletion> element in place of the change mark."
      Show
      Replace: "To reconstruct the text before a deletion took place: If the change mark is inside a paragraph, insert the text content of the <text:deletion> element as if the beginning <text > and final </text > tags were missing. If the change mark is inside a heading, proceed as above, except adapt the end tags to match their new counterparts. Otherwise, copy the text content of the <text:deletion> element in place of the change mark." by "To reconstruct the text before a deletion took place: If the change mark is inside a paragraph, insert the content that was deleted, but remove all leading start tags up to and including the first <text > element and all trailing end tags up to and including the last </text > or </text:h> element. If the last trailing element is a </text:h>, change the end tag </text > following this insertion to a </text:h> element. If the change mark is inside a heading, insert the content that was deleted, but remove all leading start tags up to and including the first <text:h> element and all trailing end tags up to and including the last </text:h> or </text > element. If the last trailing element is a </text >, change the end tag </text:h> following this insertion to a </text > element. Otherwise, copy the text content of the <text:deletion> element in place of the change mark."
    • Resolution:
      Hide

      resolve as proposed

      Show
      resolve as proposed

      Description

      5.5.4 text:deletion - second item in list: "If the change mark is inside a heading, proceed as above, except adapt the end tags to match their new counterparts." ?

      The preceding paragraph says:

      "If the change mark is inside a paragraph, insert the text content of the <text:deletion> element as if the beginning <text> and final </text> tags were missing."

      Does this mean:

      "If the change mark is inside a heading, insert the text content of the <text:deletion> element as if the beginning <text> and final </text> tags were missing."

      ? Since deleted text is save in <text></text>, shouldn't it simply be placed back in the <text:h></text:h> element?

        Attachments

          Activity

            People

            • Assignee:
              patrick Patrick Durusau
              Reporter:
              patrick Patrick Durusau
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: