diff options
author | PJ Fanning <fanningpj@apache.org> | 2017-11-20 23:58:13 +0000 |
---|---|---|
committer | PJ Fanning <fanningpj@apache.org> | 2017-11-20 23:58:13 +0000 |
commit | bb40ff4fd3061cb227218a762850543a1bf1ebb2 (patch) | |
tree | 6ec93c0614e5aa72be2b686aac3224dc30900290 /src/java/org/apache/poi/sl | |
parent | 2d8c9cbc9af1e257d004108a0635d64ac8c939cc (diff) | |
download | poi-bb40ff4fd3061cb227218a762850543a1bf1ebb2.tar.gz poi-bb40ff4fd3061cb227218a762850543a1bf1ebb2.zip |
[bug-61792] basic test
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1815873 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/poi/sl')
-rw-r--r-- | src/java/org/apache/poi/sl/draw/DrawTextParagraph.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/java/org/apache/poi/sl/draw/DrawTextParagraph.java b/src/java/org/apache/poi/sl/draw/DrawTextParagraph.java index 1b086430cd..c0c7eb21fd 100644 --- a/src/java/org/apache/poi/sl/draw/DrawTextParagraph.java +++ b/src/java/org/apache/poi/sl/draw/DrawTextParagraph.java @@ -378,6 +378,10 @@ public class DrawTextParagraph implements Drawable { Slide<?,?> slide = (Slide<?,?>)graphics.getRenderingHint(Drawable.CURRENT_SLIDE); return (slide == null) ? "" : Integer.toString(slide.getSlideNumber()); } + return getRenderableText(tr); + } + + String getRenderableText(TextRun tr) { String txt = tr.getRawText(); txt.replace("\t", tab2space(tr)).replace("\u000b", "\n"); |