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 2008/02/14 19:30:15 UTC

DO NOT REPLY [Bug 44422] New: - space-after not honored on blocks in table-header

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=44422>.
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=44422

           Summary: space-after not honored on blocks in table-header
           Product: Fop
           Version: 0.94
          Platform: PC
        OS/Version: Windows Vista
            Status: NEW
          Severity: normal
          Priority: P2
         Component: general
        AssignedTo: fop-dev@xmlgraphics.apache.org
        ReportedBy: sgriffin@cerner.com


I've been monitoring this issue throughout the past few FOP releases, and it
doesn't appear to be fixed yet nor can I find a bug report on it.  This works in
0.20.5 but not in 0.94 or even trunk.

The space-after property on blocks inside a table-header do not work. 
Padding-after does.

Modifying the table.fo example file to have a table-header with a space-after
block will easily recreate the issue:

    <fo:table table-layout="fixed" width="100%" border-collapse="separate">
      <fo:table-column column-width="50mm"/>
      <fo:table-column column-width="50mm"/>
      <fo:table-column column-width="50mm"/>
      <fo:table-header>
        <fo:table-row>
          <fo:table-cell number-columns-spanned="3">
            <fo:block border="2px solid black" space-after="12pt"
text-align="center">Table Header</fo:block>
          </fo:table-cell>
        </fo:table-row>
      </fo:table-header>
      <fo:table-body>
        <fo:table-row>
          <fo:table-cell><fo:block>good</fo:block></fo:table-cell>
          <fo:table-cell><fo:block>bad</fo:block></fo:table-cell>
          <fo:table-cell><fo:block>ugly</fo:block></fo:table-cell>
        </fo:table-row>
      </fo:table-body>
    </fo:table>

I will attach output from 0.20.5 and output from trunk.

-- 
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.

DO NOT REPLY [Bug 44422] - space-after not honored on blocks in table-header

Posted by bu...@apache.org.
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=44422>.
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=44422





------- Additional Comments From sgriffin@cerner.com  2008-02-14 10:31 -------
Created an attachment (id=21530)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=21530&action=view)
Example of space-after not working in FOP Trunk


-- 
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.

DO NOT REPLY [Bug 44422] - space-after not honored on blocks in table-header

Posted by bu...@apache.org.
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=44422>.
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=44422





------- Additional Comments From sgriffin@cerner.com  2008-02-14 10:31 -------
Created an attachment (id=21529)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=21529&action=view)
Example of space-after working in FOP 0.20.5


-- 
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.

DO NOT REPLY [Bug 44422] - space-after not honored on blocks in table-header

Posted by bu...@apache.org.
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=44422>.
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=44422


vincent.hennebert@anyware-tech.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID




------- Additional Comments From vincent.hennebert@anyware-tech.com  2008-02-14 10:52 -------
Hi Sean,

It's FOP 0.20.5 that is at fault here. The space-after on the block is
conditional and table-cell generates a reference area, so the space must be
discarded. See http://www.w3.org/TR/xsl11/#spacecond

To keep the space you must add the property space-after.conditionality="retain"
on the block.

HTH,
Vincent

-- 
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.