]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Demonstrating negative last-line-end-indent.
authorJeremias Maerki <jeremias@apache.org>
Fri, 24 Mar 2006 16:50:59 +0000 (16:50 +0000)
committerJeremias Maerki <jeremias@apache.org>
Fri, 24 Mar 2006 16:50:59 +0000 (16:50 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@388577 13f79535-47bb-0310-9956-ffa450edef68

test/layoutengine/standard-testcases/block_last-line-end-indent.xml

index 9ea768b1b4ccd5bb0d4ea937b62448e2f442e7cb..a12b0b5f45a08c73b52cb307d0a5921d96a9c2bf 100644 (file)
@@ -38,6 +38,11 @@ has seen so much, was astonished whenever it shone in her face.
           <fo:block last-line-end-indent="20pt" text-align="justify" text-align-last="justify" id="justify">
 In olden times when wishing still helped one, there lived a king whose daughters 
 were all beautiful; and the youngest was so beautiful that the sun itself, which 
+has seen so much, was astonished whenever it shone in her face.
+          </fo:block>
+          <fo:block last-line-end-indent="-20pt" end-indent="20pt" text-align="justify" text-align-last="justify" id="lastneg">
+In olden times when wishing still helped one, there lived a king whose daughters 
+were all beautiful; and the youngest was so beautiful that the sun itself, which 
 has seen so much, was astonished whenever it shone in her face.
           </fo:block>
           <fo:block last-line-end-indent="50%" text-align="justify" text-align-last="justify" id="justify50">
@@ -74,6 +79,11 @@ the nested block should be indented as well.
     <eval expected="360000" xpath="//block[@prod-id='justify']/lineArea[3]/text/@ipd"/>
     <eval expected="340000" xpath="//block[@prod-id='justify']/lineArea[4]/text/@ipd"/>
 
+    <eval expected="340000" xpath="//block[@prod-id='last0']/lineArea[1]/text/@ipd"/>
+    <eval expected="340000" xpath="//block[@prod-id='last0']/lineArea[2]/text/@ipd"/>
+    <eval expected="340000" xpath="//block[@prod-id='last0']/lineArea[3]/text/@ipd"/>
+    <eval expected="360000" xpath="//block[@prod-id='last0']/lineArea[4]/text/@ipd"/>
+
     <eval expected="360000" xpath="//block[@prod-id='justify50']/lineArea[1]/text/@ipd"/>
     <eval expected="360000" xpath="//block[@prod-id='justify50']/lineArea[2]/text/@ipd"/>
     <eval expected="360000" xpath="//block[@prod-id='justify50']/lineArea[3]/text/@ipd"/>