From 23b770464a4f6a336d65fbf9e92f067fedfe3993 Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Sun, 23 Apr 2006 11:35:19 +0000 Subject: Bugfix: Fixed ClassCastException when retrieve-marker is used as a direct child if static-content in which case leading and trailing white space is not properly removed. Note: This is probably more a hack than anything else, but it fixes the problem for now. If anyone has a better solution, please feel free to improve. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@396256 13f79535-47bb-0310-9956-ffa450edef68 --- .../marker_white-space_static-content.xml | 53 ++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 test/layoutengine/standard-testcases/marker_white-space_static-content.xml (limited to 'test') diff --git a/test/layoutengine/standard-testcases/marker_white-space_static-content.xml b/test/layoutengine/standard-testcases/marker_white-space_static-content.xml new file mode 100644 index 000000000..51e7a992d --- /dev/null +++ b/test/layoutengine/standard-testcases/marker_white-space_static-content.xml @@ -0,0 +1,53 @@ + + + + + +

+ This test is a regression check for a ClassCastException which occured because + white-space before and after a block in a marker wasn't removed when it's + copied into a static-contant element through retrieve-marker. The element list + returned contained InlineKnuthSequences which cause the ClassCastException in + wrapPositionElements(). +

+
+ + + + + + + + + + + + + + + x + + Blah blah + + + + + + + + +
-- cgit v1.2.3