Revision Accepter removes Bookmarks

Apr 24, 2014 at 11:52 AM
Hi Eric,

First, thanks for your Powertools, especially the MarkupSimplifier. Saved me hours of work.
I seem to have a Problem with the RevisionAccepter, though. It deletes Bookmarks that start at the beginning of a paragraph. Here's an example (a paragrah starting with a field, and a Bookmark containing that field)
    <w:bookmarkStart w:id="0" w:name="Rn95C9068B_84E1_4AC8_A222_18EA6120F931"/>
    <w:p w14:paraId="7FD3C18F" w14:textId="79B584A1" w:rsidR="00200FEC" w:rsidRDefault="002338EE" w:rsidP="00986E4A">
        <w:pPr>
            <w:pStyle w:val="AllgSchrifttum"/>
            <w:rPr>
                <w:lang w:val="de-DE"/>
            </w:rPr>
        </w:pPr>
        <w:r w:rsidRPr="00096FF8">
            <w:rPr>
                <w:rStyle w:val="Randnummer"/>
                <w:lang w:val="de-DE"/>
            </w:rPr>
            <w:fldChar w:fldCharType="begin"/>
        </w:r>
        <w:r w:rsidRPr="00096FF8">
            <w:rPr>
                <w:rStyle w:val="Randnummer"/>
                <w:lang w:val="de-DE"/>
            </w:rPr>
            <w:instrText xml:space="preserve"> AUTONUMLGL  \* Arabic \e \s . </w:instrText>
        </w:r>
        <w:r w:rsidRPr="00096FF8">
            <w:rPr>
                <w:rStyle w:val="Randnummer"/>
                <w:lang w:val="de-DE"/>
            </w:rPr>
            <w:fldChar w:fldCharType="end"/>
        </w:r>
        <w:bookmarkEnd w:id="0"/>
When i run the RevisionAccepter, the <bookmarkstart> disappears, just the <bookmarkend> remains. This happens to documents with Revisionmarks and without Revisionmarks, so it doesn't seem to have to do with actual RevisionAccepting at all.

I checked the Source Code (V2.7.2) to find the Problem myself, and i think i narrowed down the Problem to

AcceptDeletedAndMoveFromParagraphMarksTransform(XNode node)

(cause after running that procedure, the Bookmarks are lost). Unfortunately, i can't see why it is happening there. Do you perhaps have any ideas?