diff options
author | Luca Furini <lfurini@apache.org> | 2006-02-07 12:29:19 +0000 |
---|---|---|
committer | Luca Furini <lfurini@apache.org> | 2006-02-07 12:29:19 +0000 |
commit | 5769a0fe9fb13878a9573ea45b5544ca481c1d00 (patch) | |
tree | 7ff32da452664e4d95ed0ca11552016379d856b9 /test/layoutengine/standard-testcases/block_white-space_3.xml | |
parent | f6bf4a418239b8600d5e4957febd12fdef6a61dd (diff) | |
download | xmlgraphics-fop-5769a0fe9fb13878a9573ea45b5544ca481c1d00.tar.gz xmlgraphics-fop-5769a0fe9fb13878a9573ea45b5544ca481c1d00.zip |
Fix for bug 38507: the elements representing a non-breaking space were not always correct, sometimes allowing a break.
This also solves another bug concerning the incorrect suppression of a nbsp at the beginning of a line.
A bit of clean-up in TextLayoutManager
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@375585 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/layoutengine/standard-testcases/block_white-space_3.xml')
-rw-r--r-- | test/layoutengine/standard-testcases/block_white-space_3.xml | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/test/layoutengine/standard-testcases/block_white-space_3.xml b/test/layoutengine/standard-testcases/block_white-space_3.xml index b5276700b..112d6bed6 100644 --- a/test/layoutengine/standard-testcases/block_white-space_3.xml +++ b/test/layoutengine/standard-testcases/block_white-space_3.xml @@ -32,6 +32,7 @@ <fo:flow flow-name="xsl-region-body"> <fo:block background-color="yellow">« text »</fo:block><!-- normal spaces here --> <fo:block background-color="red">« text »</fo:block> + <fo:block background-color="blue" text-align="justify">« text »</fo:block> </fo:flow> </fo:page-sequence> </fo:root> @@ -60,16 +61,31 @@ <box/> <!-- first nbsp --> - <penalty w="0" p="INF"/> - <glue w="3336" y="0" z="0"/> + <box w="3336"/> + + <box/> + + <!-- second nbsp --> + <box w="3336"/> + + <box/> + + <skip>3</skip> + </element-list> + <element-list category="line" index="2"> + <box/> + + <!-- first nbsp --> <box w="0"/> + <penalty w="0" p="inf"/> + <glue w="3336" y="1668" z="1112"/> <box/> <!-- second nbsp --> - <penalty w="0" p="INF"/> - <glue w="3336" y="0" z="0"/> <box w="0"/> + <penalty w="0" p="inf"/> + <glue w="3336" y="1668" z="1112"/> <box/> |