[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: [OASIS Issue Tracker] Commented: (OFFICE-2796) 5.5.4 text:deletion- second item in list: "If the change mark is inside a heading, proceed asabove, except adapt the end tags to match their new counterparts." ?
[ http://tools.oasis-open.org/issues/browse/OFFICE-2796?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=20336#action_20336 ] Michael Stahl commented on OFFICE-2796: ---------------------------------------- ell, the problem is that the first/last text:deletion children are text:p, not text:h, so you would get nonsensical <text:h>bla</text:p>. i don't like the language that speaks of removing start and end tags anyway; i think that is too low level. oh, and i don't think "the text content" is the right term. what about something more like this: replace the list with: * If the change mark is inside a paragraph or heading, and the <text:deletion> element contains a single <text:p> element, then insert the content of the <text:p> element into the paragraph or heading at the position of the change mark. * If the change mark is inside a paragraph or heading, and the <text:deletion> element contains not only a single <text:p> element, then: - split the paragraph or heading at the position of the change mark. - if the first child element of the <text:deletion> is a <text:p> element, insert the content of the first child <text:p> element at the end of the first of the newly split paragraphs or headings. - if the last child element of the <text:deletion> is a <text:p> element, insert the content of the last child <text:p> element at the start of the second of the newly split paragraphs or headings. - insert all other child elements of the <text:deletion> between the first and second of the newly split paragraphs or headings. * Otherwise, insert the child elements of the <text:deletion> element at the position of the change mark. this makes more sense to me, but it sure is a bit longer... > 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." ? > ------------------------------------------------------------------------------------------------------------------------------------------------------------------- > > Key: OFFICE-2796 > URL: http://tools.oasis-open.org/issues/browse/OFFICE-2796 > Project: OASIS Open Document Format for Office Applications (OpenDocument) TC > Issue Type: Bug > Components: Text > Affects Versions: ODF 1.2 CD 05 > Reporter: Patrick Durusau > Fix For: ODF 1.2 CD 06 > > > 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:p> and final </text:p> 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:p> and final </text:p> tags were missing." > ? Since deleted text is save in <text:p></text:p>, shouldn't it simply be placed back in the <text:h></text:h> element? -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://tools.oasis-open.org/issues/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]