W3C home > Mailing lists > Public > www-xsl-fo@w3.org > November 2002

Re: Preformatted text

From: Sharon Adler <sca@us.ibm.com>
Date: Fri, 22 Nov 2002 12:17:28 -0500
To: "Cindy Hunt" <Cindy.Hunt@sas.com>
Cc: www-xsl-fo@w3.org, www-xsl-fo-request@w3.org
Message-ID: <OF82F5BCE8.846B70E7-ON85256C79.005EBD50-85256C79.005EFBD1@us.ibm.com>






Cindy, there is a property called wrap-option with the possible values of
wrap or no-wrap.

Sharon

Sharon C. Adler
 Senior Manager, Extensible Technologies
 IBM Research
 PO Box 704, Yorktown Heights, NY  10598
 tel:  914-784-6411 t/l 863
 fax: 914-784-6324



                                                                                                                                 
                      "Cindy Hunt"                                                                                               
                      <Cindy.Hunt@sas.c        To:       <www-xsl-fo@w3.org>                                                     
                      om>                      cc:                                                                               
                      Sent by:                 Subject:  Preformatted text                                                       
                      www-xsl-fo-reques                                                                                          
                      t@w3.org                                                                                                   
                                                                                                                                 
                                                                                                                                 
                      11/22/2002 09:20                                                                                           
                      AM                                                                                                         
                                                                                                                                 




> Hi-
>
> I am working on my first XSL-FO transform and have run across a place
where I am stuck. What I need to produce is a block of example code that
maintains its original line breaks and indents, something like so:
>
> begin code;
>     if x>y
>        then z;
> end code;
>
> I am used to doing this with a FOSI, being able to set justification to
"as-is". For those that speak HTML, I need something similar to <pre>. I
didn't see anything in the FO specs for justification that includes this
and I couldn't find anything else that seemed similar to me. The closest
thing I found was white-space-treatment="preserve" on the block element but
it looks like FOP doesn't support this feature when I run it.
>
> If anyone knows how to do this, could you please share your expertise
with a novice?
>
> Thanks!
> Cindy Hunt
>
Received on Friday, 22 November 2002 12:27:24 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:06:10 GMT