You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2019/07/22 22:07:49 UTC
[Bug 63558] XSLFTextParagraph leaves first line blank in cell in
XSLFTableCell
https://bz.apache.org/bugzilla/show_bug.cgi?id=63558
Andreas Beeker <ki...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |NEEDINFO
--- Comment #1 from Andreas Beeker <ki...@apache.org> ---
Please add an example - I can't reproduce your issue on the trunk. Tested with
Libre Office.
> @Test
> public void bug63558() throws Exception {
> XMLSlideShow ppt = new XMLSlideShow();
> XSLFSlide slide = ppt.createSlide();
> XSLFTable tab = slide.createTable(4,3);
> tab.setAnchor(new Rectangle2D.Double(50,50,500,500));
> for (int x=0; x<4; x++) {
> for (int y=0; y<3; y++) {
> XSLFTableCell cell = tab.getCell(x, y);
> // Variant 1
> // cell.setText("("+x+","+y+")");
> // Variant 2
> cell.addNewTextParagraph().addNewTextRun().setText("("+x+","+y+")");
> }
> }
> new DrawTableShape(tab).setAllBorders(2., Color.BLACK, StrokeStyle.LineDash.LG_DASH);
> try (FileOutputStream fos = new FileOutputStream("blub.pptx")) {
> ppt.write(fos);
> }
> }
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org