[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] XSL-FO: Space before and after inline areas


Subject: RE: [xsl] XSL-FO: Space before and after inline areas
From: Jarno.Elovirta@xxxxxxxxx
Date: Wed, 11 Feb 2004 13:35:27 +0200

Hi,

> Please excuse if this post will receive 2 times, i has some 
> trouble with sending.
> 
> If i put a inline area in a block area, there are spaces 
> before and after the inline area, i don't expect.
>  
>       <fo:block background-color="green">
>             <fo:external-graphic content-width="10mm"
>                   src="file:../images/RedGif.jpg"/>
>       </fo:block>
>  
>       <fo:block background-color="blue">
>             <fo:inline background-color="#ffffff">CONTENT</fo:inline>
>       </fo:block>
>  
> But in my PDF output 
> (http://tpmt.teleprofi.de/Uploads/test.pdf) are spaces before 
> and after the inline areas.
> Are there a reason in the code?

Yes. You have SPACE characters in your FO document before and after the inline-level element.

> How can i avoid this spaces?

Remove them.

      <fo:block background-color="green"><fo:external-graphic content-width="10mm"
                  src="file:../images/RedGif.jpg"/></fo:block>
 
      <fo:block background-color="blue"><fo:inline background-color="#ffffff">CONTENT</fo:inline></fo:block>

Cheers,

Jarno - The Cure: Apart

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



Current Thread