You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Kevin Pearcey <ke...@nipltd.com> on 2002/05/23 12:31:12 UTC
Keeping whites space in blocks
I'm converting documents from XML and some have large gaps of white space
which disappears when rendered by fop. I have a block such as
<fo:block> Some Text</fo:block>
But the resulting PDF has the text hard to the left margin as though the
input was simply:
<fo:block>Some Text</fo:block>
I assume something is allowing pre-ceding white space to be removed, but I
can see what.
Cheers
Kevin Pearcey
Re: Keeping whites space in blocks
Posted by Keiron Liddle <ke...@aftexsw.com>.
Hi Kevin,
By default whitespace is collapsed. As often there is a lot of excess
whitespace in xml.
if you use this property:
white-space-collapse="false"
it will not collapse the white space.
On Thu, 2002-05-23 at 12:31, Kevin Pearcey wrote:
> I'm converting documents from XML and some have large gaps of white space
> which disappears when rendered by fop. I have a block such as
>
> <fo:block> Some Text</fo:block>
>
> But the resulting PDF has the text hard to the left margin as though the
> input was simply:
>
> <fo:block>Some Text</fo:block>
>
> I assume something is allowing pre-ceding white space to be removed, but I
> can see what.
>
> Cheers
>
> Kevin Pearcey