Runs not merging in Word doc

May 20, 2013 at 10:52 PM
Using the following settings in my C# program:
SimplifyMarkupSettings settings = new SimplifyMarkupSettings
                {
                    AcceptRevisions = true,
                    RemoveComments = true,
                    RemoveContentControls = true,
                    RemoveEndAndFootNotes = true,
                    RemoveFieldCodes = true,
                    RemoveLastRenderedPageBreak = true,
                    RemovePermissions = true,
                    RemoveProof = true,
                    RemoveRsidInfo = true,
                    RemoveSmartTags = true,
                    RemoveSoftHyphens = true,
                    ReplaceTabsWithSpaces = true,
                    RemoveBookmarks = true,
                    RemoveGoBackBookmark = true,
                    NormalizeXml = true,
                    RemoveWebHidden = true
                };
But there are still breaks in my text that I'm trying to process with XSLT; looks like runs are not being combined as the tool is supposed to (AFAIK from reading docs). Here's some of the generated XML after running the tool. Note the comments (added by me). The text should be a single run of 'What I have learned' but it's split into 2 runs, the first containing 'What I have l' and the second, 'earned'. Both have the exact same <w:rPr/> preceding them. How can I merge these two?
<w:p w:rsidR="00F10DB1" w:rsidRDefault="00FC4BC1">
                        <w:pPr>
                            <w:spacing w:before="120" w:after="0" w:line="240" w:lineRule="auto"/>
                            <w:rPr>
                                <w:rFonts w:ascii="Arial" w:hAnsi="Arial"/>
                                <w:b/>
                                <w:sz w:val="24"/>
                                <w:szCs w:val="24"/>
                            </w:rPr>
                        </w:pPr>
                        <w:r>
                            <w:rPr>
                                <w:rFonts w:ascii="Arial" w:hAnsi="Arial"/>
                                <w:b/>
                                <w:sz w:val="24"/>
                                <w:szCs w:val="24"/>
                            </w:rPr>
                            <w:t>What I have l</w:t> <!-- HERE -->
                        </w:r>
                        <w:r>
                            <!-- THIS IS SAME AS ABOVE, NO? -->
                            <w:rPr>
                                <w:rFonts w:ascii="Arial" w:hAnsi="Arial"/>
                                <w:b/>
                                <w:sz w:val="24"/>
                                <w:szCs w:val="24"/>
                            </w:rPr>
                            <w:t>earned</w:t> <!-- CONTINUED HERE -->
                        </w:r>
                    </w:p>