aboutsummaryrefslogtreecommitdiffstats
path: root/src/scratchpad/testcases/org/apache/poi/hslf/model/TestTextRun.java
diff options
context:
space:
mode:
authorYegor Kozlov <yegor@apache.org>2012-03-01 09:51:28 +0000
committerYegor Kozlov <yegor@apache.org>2012-03-01 09:51:28 +0000
commit9d449dbd97380e7085257e738e05fec741a4e21d (patch)
treed637453113b981e1312fcc14b6c928170cd072cb /src/scratchpad/testcases/org/apache/poi/hslf/model/TestTextRun.java
parenta437cd08acbf8f9c89679ca1c749f77c0450f00e (diff)
downloadpoi-9d449dbd97380e7085257e738e05fec741a4e21d.tar.gz
poi-9d449dbd97380e7085257e738e05fec741a4e21d.zip
bugzilla 52682 - allow setting text with trailing carriage return in HSLF
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1295488 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/scratchpad/testcases/org/apache/poi/hslf/model/TestTextRun.java')
-rw-r--r--src/scratchpad/testcases/org/apache/poi/hslf/model/TestTextRun.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/scratchpad/testcases/org/apache/poi/hslf/model/TestTextRun.java b/src/scratchpad/testcases/org/apache/poi/hslf/model/TestTextRun.java
index f59eef3a5f..a82e551994 100644
--- a/src/scratchpad/testcases/org/apache/poi/hslf/model/TestTextRun.java
+++ b/src/scratchpad/testcases/org/apache/poi/hslf/model/TestTextRun.java
@@ -100,9 +100,9 @@ public final class TestTextRun extends TestCase {
run.setText(changeTo);
assertEquals(changeTo, run.getText());
- // Ensure trailing \n's get stripped
+ // Ensure trailing \n's are NOT stripped, it is legal to set a text with a trailing '\r'
run.setText(changeTo + "\n");
- assertEquals(changeTo, run.getText());
+ assertEquals(changeTo + "\n", run.getText());
}
/**