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 bonekrusher <dj...@yahoo.com> on 2009/01/07 02:38:52 UTC
0.95 Trunk - Text not wrapping in cell -
keep-together.within-column="always"
Hi,
In the below example, I am trying to create change bars along side a table
cell. I was able to do this in 0.20.5 with the example below. In the trunk
version, if I add the attribute padding-end="13pt" to the block of a cell,
the text does not wrap. If I remove it, the text wraps, but I loose my
"change bar".
I am not sure if this is a bug, or maybe there is a better way to accomplish
my original goal.
Example:
<?xml version="1.0" encoding="utf-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master master-name="simple" page-height="11in"
page-width="8.5in" margin-top=".5in" margin-bottom=".5in" margin-left=".5in"
margin-right=".5in">
<fo:region-body margin-top=".5in"/>
<fo:region-before extent=".5in"/>
<fo:region-after extent=".5in"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="simple">
<fo:flow flow-name="xsl-region-body">
<fo:block>
<fo:table table-layout="fixed" width="7.5in">
<fo:table-column column-width="proportional-column-width(1)"/>
<fo:table-body>
<fo:table-row>
<fo:table-cell padding-left="5px" padding-top="5px"
padding-bottom="5px" padding-right="5px" background-color="silver"
keep-together.within-column="always" border-top-style="solid"
border-top-width="1pt" border-bottom-style="solid" border-bottom-width="1pt"
border-start-style="solid" border-start-width="1pt" border-end-style="solid"
border-end-width="1pt">
<fo:block font-family="Courier New" font-size="10pt">PLACARD:
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell padding-left="5px" padding-top="5px"
padding-bottom="5px" padding-right="5px"
keep-together.within-column="always" border-top-style="solid"
border-top-width="1pt" border-bottom-style="solid" border-bottom-width="1pt"
border-start-style="solid" border-start-width="1pt" border-end-style="solid"
border-end-width="1pt" >
<fo:block border-end-color="black" border-after-color="white"
border-before-color="white" border-end-width=".015in"
border-end-style="solid" font-family="Courier New" font-size="10pt"
space-after.optimum="8pt" keep-together="always" padding-end="13pt">Record
in Logbook:This is a really long para. This is a really long para. This is a
really long para. This is a really long para. This is a really long
para.</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>
Thanks,
Phil
--
View this message in context: http://www.nabble.com/0.95-Trunk---Text-not-wrapping-in-cell---keep-together.within-column%3D%22always%22-tp21323263p21323263.html
Sent from the FOP - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: 0.95 Trunk - Text not wrapping in cell -
keep-together.within-column="always"
Posted by bonekrusher <dj...@yahoo.com>.
Thanks - The keep-together on the block was the cause -
Regards,
Phil
Andreas Delmelle-2 wrote:
>
> On 07 Jan 2009, at 02:38, bonekrusher wrote:
>
> Hi Phil
>
>> In the below example, I am trying to create change bars along side a
>> table
>> cell. I was able to do this in 0.20.5 with the example below. In the
>> trunk
>> version, if I add the attribute padding-end="13pt" to the block of a
>> cell,
>> the text does not wrap. If I remove it, the text wraps, but I loose my
>> "change bar".
>> I am not sure if this is a bug, or maybe there is a better way to
>> accomplish
>> my original goal.
>
> Are you certain the cause is not in the keep-together property on the
> fo:block?
>
>> <fo:block border-end-color="black" border-after-color="white"
>> border-before-color="white" border-end-width=".015in"
>> border-end-style="solid" font-family="Courier New" font-size="10pt"
>> space-after.optimum="8pt" keep-together="always" padding-
>> end="13pt">Record
>> in Logbook:This is a really long para. This is a really long para.
>> This is a
>> really long para. This is a really long para. This is a really long
>> para.</fo:block>
>
> Try making that keep-together.within-column, and see if it helps.
>
>
> HTH!
>
> Cheers
>
> Andreas
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/0.95-Trunk---Text-not-wrapping-in-cell---keep-together.within-column%3D%22always%22-tp21323263p21335682.html
Sent from the FOP - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: 0.95 Trunk - Text not wrapping in cell - keep-together.within-column="always"
Posted by Andreas Delmelle <an...@telenet.be>.
On 07 Jan 2009, at 02:38, bonekrusher wrote:
Hi Phil
> In the below example, I am trying to create change bars along side a
> table
> cell. I was able to do this in 0.20.5 with the example below. In the
> trunk
> version, if I add the attribute padding-end="13pt" to the block of a
> cell,
> the text does not wrap. If I remove it, the text wraps, but I loose my
> "change bar".
> I am not sure if this is a bug, or maybe there is a better way to
> accomplish
> my original goal.
Are you certain the cause is not in the keep-together property on the
fo:block?
> <fo:block border-end-color="black" border-after-color="white"
> border-before-color="white" border-end-width=".015in"
> border-end-style="solid" font-family="Courier New" font-size="10pt"
> space-after.optimum="8pt" keep-together="always" padding-
> end="13pt">Record
> in Logbook:This is a really long para. This is a really long para.
> This is a
> really long para. This is a really long para. This is a really long
> para.</fo:block>
Try making that keep-together.within-column, and see if it helps.
HTH!
Cheers
Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org