Bug 60470

Summary: Not extracting comments anchored in runs in XWPF
Product: POI Reporter: Tim Allison <tallison>
Component: XWPFAssignee: POI Developers List <dev>
Status: NEW ---    
Severity: normal    
Priority: P2    
Version: 3.16-dev   
Target Milestone: ---   
Hardware: PC   
OS: All   
Attachments: triggering file, based on Tika's testWORD_numbered_list.docx

Description Tim Allison 2016-12-12 14:35:27 UTC
Created attachment 34521 [details]
triggering file, based on Tika's testWORD_numbered_list.docx

While working on SAX parser for XWPF on Tika, I found that we're not extracting comments anchored in runs in Tika or POI with our DOM parser.

unit test:

    public void testCommentsAnchoredInRuns() throws IOException {
        XWPFDocument doc = XWPFTestDataSamples.openSampleDocument("testCommentAnchoredInRun.docx");
        XWPFWordExtractor extractor = new XWPFWordExtractor(doc);
        assertTrue(extractor.getText().contains("add a list"));
    }