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 John Bourke <jo...@Cedar.com> on 2002/05/03 10:45:35 UTC

How do I stop table cell wrapping?

Guys is there a way to stop cells in a table wrapping the text to the next
line and simply cutting the data if it's longer than the cell width? I would
think there may be some kind of attribute to do this?


***********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. Any unauthorised distribution or copying is strictly 
prohibited.

Whilst Cedar Plc takes steps to prevent the transmission of 
viruses via e-mail, we can not guarantee that any email or 
attachment is free from computer viruses and you are strongly
advised to undertake your own anti-virus precautions.

Cedar Plc grants no warranties regarding performance,
use or quality of any e-mail or attachment and undertakes no 
liability for loss or damage, howsoever caused.
************************************************************************

Re: How do I stop table cell wrapping?

Posted by Stéphane REYNIER <st...@cso-info.fr>.
You can do that whith the attribute "wrap-option" set to "no-wrap" like this
:

<fo:table-cell>
    <fo:block wrap-option="no-wrap">
        ....
    </fo:block>
<fo:table-cell>


----- Original Message -----
From: "John Bourke" <jo...@Cedar.com>
To: <fo...@xml.apache.org>
Sent: Friday, May 03, 2002 10:45 AM
Subject: How do I stop table cell wrapping?


>
> Guys is there a way to stop cells in a table wrapping the text to the next
> line and simply cutting the data if it's longer than the cell width? I
would
> think there may be some kind of attribute to do this?
>
>
> ***********************************************************************
> This email and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to whom they
> are addressed. Any unauthorised distribution or copying is strictly
> prohibited.
>
> Whilst Cedar Plc takes steps to prevent the transmission of
> viruses via e-mail, we can not guarantee that any email or
> attachment is free from computer viruses and you are strongly
> advised to undertake your own anti-virus precautions.
>
> Cedar Plc grants no warranties regarding performance,
> use or quality of any e-mail or attachment and undertakes no
> liability for loss or damage, howsoever caused.
> ************************************************************************


RE: How do I stop table cell wrapping?

Posted by "Matthew L. Avizinis" <ml...@gleim.com>.
Now I get the whole picture....
thanks,

> -----Original Message-----
> From: J.Pietschmann [mailto:j3322ptm@yahoo.de]
> Sent: Friday, May 03, 2002 5:20 PM
> To: fop-user@xml.apache.org
> Subject: Re: How do I stop table cell wrapping?
> 
> 
> Matthew L. Avizinis wrote:
> > I seem to recall that the fo:block wrap-option="wrap | no-wrap" 
> attribute
> > works in cells.
> 
> Yes, it works. However, if the content is too large for the
> cell, it will visibly overflow into whatever is further in
> inline progression direction (read: table cells to the right).
> 
> The standard provides the property overflow="hidden" (not
> ="clip", sorry) to clip the overflowing content, and this
> doesn't work in FOP, at least for rendering PDF.
> 
> J.Pietschmann

Re: How do I stop table cell wrapping?

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Matthew L. Avizinis wrote:
> I seem to recall that the fo:block wrap-option="wrap | no-wrap" attribute
> works in cells.

Yes, it works. However, if the content is too large for the
cell, it will visibly overflow into whatever is further in
inline progression direction (read: table cells to the right).

The standard provides the property overflow="hidden" (not
="clip", sorry) to clip the overflowing content, and this
doesn't work in FOP, at least for rendering PDF.

J.Pietschmann


RE: How do I stop table cell wrapping?

Posted by "Matthew L. Avizinis" <ml...@gleim.com>.
I seem to recall that the fo:block wrap-option="wrap | no-wrap" attribute
works in cells.

> -----Original Message-----
> From: J.Pietschmann [mailto:j3322ptm@yahoo.de]
> Sent: Friday, May 03, 2002 4:12 PM
> To: fop-user@xml.apache.org
> Subject: Re: How do I stop table cell wrapping?
>
>
> John Bourke wrote:
> > Guys is there a way to stop cells in a table wrapping the text
> to the next
> > line and simply cutting the data if it's longer than the cell
> width? I would
> > think there may be some kind of attribute to do this?
>
> You probably want to use the overflow="clip" property too,
> unfortunately, it isn't implemented yet in FOP. You'll have
> to clip at the XSLT level. There are various apporaches in
> the XSL list archive.
>
> J.Pietschmann


Re: How do I stop table cell wrapping?

Posted by "J.Pietschmann" <j3...@yahoo.de>.
John Bourke wrote:
> Guys is there a way to stop cells in a table wrapping the text to the next
> line and simply cutting the data if it's longer than the cell width? I would
> think there may be some kind of attribute to do this?

You probably want to use the overflow="clip" property too,
unfortunately, it isn't implemented yet in FOP. You'll have
to clip at the XSLT level. There are various apporaches in
the XSL list archive.

J.Pietschmann