aboutsummaryrefslogtreecommitdiffstats
path: root/test/layoutengine/standard-testcases/block_linefeed-treatment_2.xml
diff options
context:
space:
mode:
authorManuel Mall <manuel@apache.org>2005-12-23 11:27:07 +0000
committerManuel Mall <manuel@apache.org>2005-12-23 11:27:07 +0000
commit40cf61859f22923df0877a930a55627cb4af2066 (patch)
treefbdb90a9b949e2b09fd7adb0a3b6475fdf6cdf80 /test/layoutengine/standard-testcases/block_linefeed-treatment_2.xml
parent605c5f7be6a2f41a56a5f86667f25deb6b1de9ae (diff)
downloadxmlgraphics-fop-40cf61859f22923df0877a930a55627cb4af2066.tar.gz
xmlgraphics-fop-40cf61859f22923df0877a930a55627cb4af2066.zip
Fixed problem with linefeed-treatment=preserve not being correctly handled for text-align=center
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@358792 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/layoutengine/standard-testcases/block_linefeed-treatment_2.xml')
-rw-r--r--test/layoutengine/standard-testcases/block_linefeed-treatment_2.xml25
1 files changed, 19 insertions, 6 deletions
diff --git a/test/layoutengine/standard-testcases/block_linefeed-treatment_2.xml b/test/layoutengine/standard-testcases/block_linefeed-treatment_2.xml
index 016c27b2b..bb9587ec5 100644
--- a/test/layoutengine/standard-testcases/block_linefeed-treatment_2.xml
+++ b/test/layoutengine/standard-testcases/block_linefeed-treatment_2.xml
@@ -36,19 +36,29 @@ of fo:inline elements.
</fo:layout-master-set>
<fo:page-sequence master-reference="master">
<fo:flow flow-name="xsl-region-body">
- <fo:block linefeed-treatment="preserve" text-align="center">
+ <fo:block background-color="silver"
+ linefeed-treatment="preserve" text-align="center"
+ margin-top="10pt" margin-bottom="10pt">
<fo:inline font-weight="bold">Leasing a ...</fo:inline>
+
<fo:inline>Contrat Nr.: W-113283...</fo:inline>
</fo:block>
- <fo:block linefeed-treatment="preserve" text-align="center">
+ <fo:block background-color="yellow"
+ linefeed-treatment="preserve" text-align="center"
+ margin-top="10pt" margin-bottom="10pt">
<fo:inline font-weight="bold">Leasing a ...</fo:inline>
<fo:inline>&#10;Contrat Nr.: W-113283...</fo:inline>
</fo:block>
- <fo:block linefeed-treatment="preserve">
+ <fo:block background-color="silver"
+ linefeed-treatment="preserve"
+ margin-top="10pt" margin-bottom="10pt">
<fo:inline font-weight="bold">Leasing a ...</fo:inline>
+
<fo:inline>Contrat Nr.: W-113283...</fo:inline>
</fo:block>
- <fo:block linefeed-treatment="preserve">
+ <fo:block background-color="yellow"
+ linefeed-treatment="preserve"
+ margin-top="10pt" margin-bottom="10pt">
<fo:inline font-weight="bold">Leasing a ...</fo:inline>
<fo:inline>&#10;Contrat Nr.: W-113283...</fo:inline>
</fo:block>
@@ -61,12 +71,15 @@ of fo:inline elements.
The result:
Leasing a ...
+
Contract Nr.: W-...
Leasing a ...
+
Contract Nr.: W-...
Leasing a ...
+
Contract Nr.: W-...
Leasing a ...
@@ -77,9 +90,9 @@ The result for the second case is lacking the linefeed at the start of
the fo:inline. The results for the first and second cases are lacking
the linefeed before the first line.
-->
- <eval expected="3" xpath="count(//flow/block[1]/lineArea)"/>
+ <eval expected="4" xpath="count(//flow/block[1]/lineArea)"/>
<eval expected="4" xpath="count(//flow/block[2]/lineArea)"/>
- <eval expected="3" xpath="count(//flow/block[3]/lineArea)"/>
+ <eval expected="4" xpath="count(//flow/block[3]/lineArea)"/>
<eval expected="4" xpath="count(//flow/block[4]/lineArea)"/>
</checks>
</testcase>