View | Details | Raw Unified | Return to bug 60003
Collapse All | Expand All

(-)src/scratchpad/src/org/apache/poi/hslf/extractor/PowerPointExtractor.java (+3 lines)
Lines 211-216 Link Here
211
                                // don't bother about boiler
211
                                // don't bother about boiler
212
                                // plate text on master
212
                                // plate text on master
213
                                // sheets
213
                                // sheets
214
                                System.out.println("Ignoring boiler plate (placeholder) text '"
215
                                        + ((HSLFTextShape)sh).getText() +
216
                                        "' on slide master");
214
                                continue;
217
                                continue;
215
                            }
218
                            }
216
                            HSLFTextShape tsh = (HSLFTextShape)sh;
219
                            HSLFTextShape tsh = (HSLFTextShape)sh;
(-)src/scratchpad/testcases/org/apache/poi/hslf/extractor/TestExtractor.java (-1 / +15 lines)
Lines 431-435 Link Here
431
        String target = "this\tText\tis\twithin\ta\n"+
431
        String target = "this\tText\tis\twithin\ta\n"+
432
                "table\t1\t2\t3\t4";
432
                "table\t1\t2\t3\t4";
433
        assertTrue(text.contains(target));
433
        assertTrue(text.contains(target));
434
    }    
434
    }
435
436
    // bug 60003
437
    @Test
438
    public void testExtractMasterSlideFooterText() throws Exception {
439
        HSLFSlideShowImpl hslf = new HSLFSlideShowImpl(slTests.openResourceAsStream("60003.ppt"));
440
        ppe.close();
441
442
        ppe = new PowerPointExtractor(hslf);
443
        ppe.setMasterByDefault(true);
444
      
445
        String text = ppe.getText();
446
        assertContains(text, "Prague");
447
        hslf.close();
448
    }
435
}
449
}

Return to bug 60003