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 Diego F Guillen <ad...@tpg.com.au> on 2006/04/06 08:33:00 UTC

FOP 0.20.5: preserving preformatted text

I have been trying to display pre-formatted text in FO, unsuccessfully.

I tried:
<fo:block
    linefeed-treatment="preserve"
    white-space-treatment="preserve">

   [preformatted text goes here]

</fo:block>

How do you do it?
Thanks,
    Diego

>

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


Re: FOP 0.20.5: preserving preformatted text

Posted by Diego F Guillen <ad...@tpg.com.au>.
Hi Chris,
Yes, it works now.
Thank you very much,
    Diego


Chris Bowditch wrote:

> Diego F Guillen wrote:
>
>> I have been trying to display pre-formatted text in FO, unsuccessfully.
>>
>> I tried:
>> <fo:block
>>    linefeed-treatment="preserve"
>>    white-space-treatment="preserve">
>>
>>   [preformatted text goes here]
>>
>> </fo:block>
>>
>> How do you do it?
>
>
> I think you also need white-space-collapse="false" on the fo:block
>
> 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


Re: FOP 0.20.5: preserving preformatted text

Posted by Chris Bowditch <bo...@hotmail.com>.
Diego F Guillen wrote:

> I have been trying to display pre-formatted text in FO, unsuccessfully.
> 
> I tried:
> <fo:block
>    linefeed-treatment="preserve"
>    white-space-treatment="preserve">
> 
>   [preformatted text goes here]
> 
> </fo:block>
> 
> How do you do it?

I think you also need white-space-collapse="false" on the fo:block

Chris



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