Luca Furini wrote:

Chris Bowditch wrote:

Hmmm.... I hate to be the bearer of bad news. But it seems that the change has broken text-align="right" when used on table cells. All the regression tests pass, so I guess it working when text-align="right" for regular blocks.


D'oh!

Could you please attach a file demonstrating this problem?

I have just tried a simple test with right-aligned text inside a table cell, but I don't see anything strange ...

The example is actually a bit more convoluted than I first realised. In my example there are two tables inside a block with margin-left="3mm" The text in the 2nd column of the 2nd table are not correctly right aligned. All the text in this example was right aligned properly before you made this change.

<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format";>
        <fo:layout-master-set>
<fo:simple-page-master master-name="a4" page-width="210mm" page-height="297mm">
                        <fo:region-body/>
                </fo:simple-page-master>
        </fo:layout-master-set>
        <fo:page-sequence master-reference="a4">
                <fo:flow flow-name="xsl-region-body">
                        <fo:block margin-right="10mm" margin-left="3mm" 
margin-top="2mm">
<fo:table space-before="2pt" font-size="8pt" table-layout="fixed" width="100%" border-collapse="separate" start-indent="0mm"> <fo:table-column column-width="proportional-column-width(50)" column-number="1"/> <fo:table-column column-width="proportional-column-width(50)" column-number="2"/>
                                        <fo:table-body start-indent="0mm" 
end-indent="0mm">
                                                <fo:table-row>
                                                        <fo:table-cell>
                                                                <fo:block>
<fo:block line-height="10pt" font-size="8pt" font-family="Arial" wrap-option="no-wrap">Q4 Earnings Call</fo:block>
                                                                </fo:block>
                                                        </fo:table-cell>
                                                        <fo:table-cell>
                                                                <fo:block>
<fo:block line-height="10pt" font-size="8pt" font-family="Arial" wrap-option="no-wrap" text-align="right">15 January 2005</fo:block>
                                                                </fo:block>
                                                        </fo:table-cell>
                                                </fo:table-row>
                                        </fo:table-body>
                                </fo:table>
<fo:table space-before="2pt" font-size="8pt" table-layout="fixed" width="100%" border-collapse="separate" start-indent="0mm"> <fo:table-column column-width="proportional-column-width(50)" column-number="1"/> <fo:table-column column-width="proportional-column-width(50)" column-number="2"/>
                                        <fo:table-body>
                                                <fo:table-row>
                                                        <fo:table-cell>
                                                                <fo:block>
<fo:block line-height="10pt" font-size="8pt" font-family="Arial" wrap-option="no-wrap">Christmas</fo:block>
                                                                </fo:block>
                                                        </fo:table-cell>
                                                        <fo:table-cell>
                                                                <fo:block>
<fo:block line-height="10pt" font-size="8pt" font-family="Arial" wrap-option="no-wrap" text-align="right">25 December 2004</fo:block>
                                                                </fo:block>
                                                        </fo:table-cell>
                                                </fo:table-row>
                                        </fo:table-body>
                                </fo:table>
                        </fo:block>
                </fo:flow>
        </fo:page-sequence>
</fo:root>

Thanks,

Chris


Reply via email to