You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by bu...@apache.org on 2007/08/17 16:49:42 UTC

DO NOT REPLY [Bug 42049] - RTF (and PDF) tables incorrectly handle margin-left inheritance

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42049>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42049


vschappert@bloomberg.net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|RTF (and PDF) tables        |RTF (and PDF) tables
                   |incorrectly handle margin-  |incorrectly handle margin-
                   |left inheritacne            |left inheritance




------- Additional Comments From vschappert@bloomberg.net  2007-08-17 07:49 -------
Hi,

If FOP has no bugs for indent inheritance, I suggest running this snippet:

    <fo:table
        space-before="1in"
        margin-left="2in"
        border-width="10%"
        border-color="black"
        border-style="solid"
        background-color="lightblue"
        padding="0.5in"
        table-layout="fixed" width="60%">
        <fo:table-column column-width="1in"/>
        <fo:table-column column-width="1in"/>
        <fo:table-body>
        <fo:table-row>
             <fo:table-cell background-color="blue">
                 <fo:block>XXXX</fo:block></fo:table-cell>
             <fo:table-cell background-color="gray">
                 <fo:block>YYYY</fo:block>
             </fo:table-cell>
        </fo:table-row>
        </fo:table-body>
    </fo:table>

I'm curious why the cell backgrounds are painted where they are expected, and
then the cell TEXT is painted outside and to the right of the cell backgrounds.
 Surely this must be a bug.

Secondly, if margin-left isn't inherited, then while you are correct that the
original behaviour in RTF I mentioned is wrong, the table snippet causes FOP to
generate incorrect RTF, b/c the \par paragraph elements (e.g. blocks) are
inheriting the margin-left, causing the text "XXXX" and "YYYY" to be indented so
far into the cell that it is invisible...

Interested in your comments.

Best,

V

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.