From f3872545227afbab91aac6b68e50686d07255216 Mon Sep 17 00:00:00 2001 From: Manuel Mall Date: Sat, 17 Dec 2005 05:26:36 +0000 Subject: Another workaround/hack to deal with non breaking spaces. Also some minor adjustments to support the planned AFP renderer git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@357298 13f79535-47bb-0310-9956-ffa450edef68 --- test/layoutengine/disabled-testcases.xml | 6 +++ .../standard-testcases/block_white-space_2.xml | 14 ++++-- .../standard-testcases/block_white-space_2a.xml | 57 ++++++++++++++++++++++ 3 files changed, 74 insertions(+), 3 deletions(-) create mode 100755 test/layoutengine/standard-testcases/block_white-space_2a.xml (limited to 'test') diff --git a/test/layoutengine/disabled-testcases.xml b/test/layoutengine/disabled-testcases.xml index 26c0cd63b..412755447 100755 --- a/test/layoutengine/disabled-testcases.xml +++ b/test/layoutengine/disabled-testcases.xml @@ -55,6 +55,12 @@ An empty block currently produces a fence for stacking constraints which it shouldn't. + + Non breaking space removal + block_white-space_2.xml + A non breaking space is incorrectly + removed from the start of a line. + block white-space-collapse 2 block_white-space-collapse_2.xml diff --git a/test/layoutengine/standard-testcases/block_white-space_2.xml b/test/layoutengine/standard-testcases/block_white-space_2.xml index 28fba5721..e1dfa24c0 100755 --- a/test/layoutengine/standard-testcases/block_white-space_2.xml +++ b/test/layoutengine/standard-testcases/block_white-space_2.xml @@ -18,7 +18,12 @@

- This test checks an empty block + This test checks non breaking white space. + Note: This test currently fails because the first non breaking space on + each line is incorrectly removed. There is a duplicate test + block_white-space_2a.xml whose checks have been adjusted to cater for + this defect. Once the problem is fixed block_white-space_2a.xml should + be removed from the test suite.

@@ -30,16 +35,19 @@ - before empty line +  single nbsp around    - after empty line +   after  empty  line   + + +
diff --git a/test/layoutengine/standard-testcases/block_white-space_2a.xml b/test/layoutengine/standard-testcases/block_white-space_2a.xml new file mode 100755 index 000000000..c14b0a32f --- /dev/null +++ b/test/layoutengine/standard-testcases/block_white-space_2a.xml @@ -0,0 +1,57 @@ + + + + + +

+ This test checks non breaking white space. + Note: This test should fail because the first nb space in each line is + incorrectly removed. However, the checks below have been adjusted to + cater for this defect so this test passes. This has been done to have some + test cases which are being run in the test suite for non breaking spaces. + This test is otherwise identical to block_white-space_2.xml. Once the problem + is fixed this file can be deleted from the test suite. +

+
+ + + + + + + + + +  single nbsp around  +   +   after  empty  line   + + + + + + + + + + + + + + + +
-- cgit v1.2.3