https://bz.apache.org/bugzilla/show_bug.cgi?id=68922

            Bug ID: 68922
           Summary: Text with a line break does not import correctly
           Product: POI
           Version: 5.2.3-FINAL
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSLF
          Assignee: dev@poi.apache.org
          Reporter: aleksey...@mail.ru
  Target Milestone: ---

Created attachment 39676
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=39676&action=edit
original PPT with line break

A slide with text with a line break does not import correctly, 
resulting in a corrupted file that does not open. 
The problem is that the <a:br> tag is replaced with an empty <a:r> tag.

Possible duplicate:
https://bz.apache.org/bugzilla/show_bug.cgi?id=68668

To reproduce:

    InputStream is = new FileInputStream("test line break.pptx");
    XMLSlideShow ppt = new XMLSlideShow(is);
    FileOutputStream out = new FileOutputStream("test line break output.pptx");

    XSLFSlide slide = ppt.getSlides().get(0);

    XSLFSlide newSlide = ppt.createSlide();
    newSlide.importContent(slide);
    ppt.write(out);

Result:
 The "test line break output.pptx" file is corrupt.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org

Reply via email to