Page 1 of 1

[XSLFO] List block space after

Posted: Mon Jul 09, 2012 3:29 pm
by ESTRADE
Hi

I have problem with space after

File FO :

Code: Select all


<?xml version="1.0" encoding="iso-8859-1"?>

<fo:block>
<fo:list-block space-before="3mm">
<fo:list-item>
<fo:list-item-label end-indent="label-end()">
<fo:block space-before="0cm">(7) </fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block>
<fo:block>This manual contains:</fo:block>
</fo:block>
</fo:list-item-body>
</fo:list-item>
</fo:list-block>
<fo:list-block space-before="3mm">
<fo:list-item>
<fo:list-item-label end-indent="label-end()">
<fo:block space-before="0cm"> </fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block>
<fo:list-block provisional-distance-between-starts="0.5cm">
<fo:list-item>
<fo:list-item-label end-indent="label-end()">
<fo:block space-before="0cm">-</fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block space-after="1cm">
<fo:block>gfgfgfg gfgfggf gfgfggfgf fggfgfgfgf,</fo:block>
</fo:block>
</fo:list-item-body>
</fo:list-item>
<fo:list-item>
<fo:list-item-label end-indent="label-end()">
<fo:block space-before="0cm">-</fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block space-after="1cm">
<fo:block>khkhk tytyuit oktlt jhjhjhj jhjhhjh,</fo:block>
</fo:block>
</fo:list-item-body>
</fo:list-item>
<fo:list-item>
<fo:list-item-label end-indent="label-end()">
<fo:block space-before="0cm">-</fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block space-after="1cm">
<fo:block>bvbvbvbvb bbvbvbvbbv bvbvbbvbv bbvbvbvb.</fo:block>
</fo:block>
</fo:list-item-body>
</fo:list-item>
</fo:list-block>

</fo:block>
</fo:list-item-body>
</fo:list-item>
</fo:list-block>
</fo:block>
I want space betwwen '-' but i indicate space-after="1cm" and in result not exist space betwee '-' ?

Thank you for help

Best regards

Re: [XSLFO] List block space after

Posted: Wed Jul 11, 2012 4:09 pm
by sorin_ristache
Hello Bruno,

You have to add the space-after attribute to the fo:list-item element instead of the fo:block element:

Code: Select all

<fo:list-item space-after="1cm">
<fo:list-item-label end-indent="label-end()">
<fo:block space-before="0cm">-</fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block>
<fo:block>gfgfgfg gfgfggf gfgfggfgf</fo:block>
</fo:block>
</fo:list-item-body>
</fo:list-item>

Regards,
Sorin

Re: [XSLFO] List block space after

Posted: Thu Jul 12, 2012 5:24 pm
by ESTRADE
thank you is OK