Luca Furini wrote:

Chris Bowditch wrote:

I just knocked up a small test case and although retain is honoured, discard is ignored. I knew it wasn't quite yet working but didn't realise retain was working :) I'll update the Wiki.

Could you please also attach your file?

Here is the sample:

<fo:root xmlns:fo="";>
<fo:simple-page-master master-name="a4" page-width="210mm" page-height="297mm" margin="5mm"> <fo:region-body margin-top="90mm" margin-bottom="90mm" background-color="blue"/>
<fo:page-sequence master-reference="a4">
        <fo:flow flow-name="xsl-region-body" font-size="18pt">
<fo:block space-before="5mm" space-before.conditionality="retain">There should be 5mm of space before this block</fo:block> <fo:block space-before="5mm" space-before.conditionality="discard">There should not be any space before this block

I have tested a simple sequence of blocks with conditional spaces and the output seems ok; the output of the testcase space-block2.xml seems correct too (I'm going to add checks).

Not true, space-block2.xml does not work. On the second page, there should not be any space between the two paragraphs.


Reply via email to