aboutsummaryrefslogtreecommitdiffstats
path: root/src/scratchpad/testcases/org/apache/poi/hslf/model/TestTextRun.java
diff options
context:
space:
mode:
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());
}
/**