Bug 44422 - space-after not honored on blocks in table-header
Summary: space-after not honored on blocks in table-header
Status: CLOSED INVALID
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: general (show other bugs)
Version: 0.94
Hardware: PC Windows Vista
: P2 normal
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-14 10:30 UTC by Sean Griffin
Modified: 2012-04-01 13:54 UTC (History)
0 users



Attachments
Example of space-after working in FOP 0.20.5 (1.01 KB, application/pdf)
2008-02-14 10:31 UTC, Sean Griffin
Details
Example of space-after not working in FOP Trunk (5.07 KB, application/pdf)
2008-02-14 10:31 UTC, Sean Griffin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sean Griffin 2008-02-14 10:30:15 UTC
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.
Comment 1 Sean Griffin 2008-02-14 10:31:19 UTC
Created attachment 21529 [details]
Example of space-after working in FOP 0.20.5
Comment 2 Sean Griffin 2008-02-14 10:31:48 UTC
Created attachment 21530 [details]
Example of space-after not working in FOP Trunk
Comment 3 Vincent Hennebert 2008-02-14 10:52:15 UTC
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
Comment 4 Glenn Adams 2012-04-01 13:54:13 UTC
batch transition to closed remaining pre-FOP1.0 resolved bugs