xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Bowditch <bowditch_ch...@hotmail.com>
Subject Re: Preserving White Spaces in FOP 1.0
Date Fri, 19 Aug 2011 13:38:35 GMT
On 18/08/2011 18:32, Rita Greenberg wrote:
> Hello.

Hi Rita,

> In FOP version 0.20.5 the following code preserved white spaces in text.
> I'm in the process of converting to FOP version 1.0 and the same piece of code
> does not preserve the white spaces.
>
> <fo:list-item-body start-indent="body-start()" end-indent="3mm">
>    <xsl:for-each select="RCEXPLANATION/LINE">
>      <fo:block white-space-collapse="false">
>        <xsl:apply-templates/>
>      </fo:block>
>    </xsl:for-each>
> </fo:list-item-body>

white-space-collapse will stop multiple spaces being merged into one. 
You also need white-space-treatment="preserve" to stop whitespace at the 
start and end of lines being suppressed.

> Is there anything that I can do to preserve the white spaces?
>
> Thank you,
> Rita

Thanks,

Chris

>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Mime
View raw message