Hi all,
I'm rendering several simple tables one by one and experiencing the extra space between them. This space has no (IMHO) any reason, as tables has no space before/after or margin defined. I attached the simple example - two tables with one row and one cell, border defined on the table element to see the table block.

When tables are placed as direct children of fo:flow, the output is correct - no space between. When I enclose these two tables to single fo:block, suddenly there is extra space rendered.

I would appreciate any help...
Cheers
Martin

===
FOP version: 0.92beta
Attachments:
- tables.fo (source to render table_bug_wrong.pdf)
- tables_wrong.pdf (tables with extra space between)
- tables_correct.pdf (correct output after removing the enclosing fo:block)
===

<?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 margin-right="0.5in" margin-left="0.5in" margin-bottom="0.5in" margin-top="0.5in" page-width="8.5in" page-height="11in" master-name="chapter-page">
      <fo:region-body margin-left="0.5in" margin-right="0.5in" margin-top="0.5in" margin-bottom="0.5in"/>
    </fo:simple-page-master>
    
    <fo:page-sequence-master master-name="sequence-chapter">
      <fo:repeatable-page-master-alternatives>
        <fo:conditional-page-master-reference master-reference="chapter-page"/>
      </fo:repeatable-page-master-alternatives>
    </fo:page-sequence-master>
  </fo:layout-master-set>
  
  <fo:page-sequence format="1" master-reference="sequence-chapter">
    <fo:flow font-family="Times" font-size="12pt" flow-name="xsl-region-body">
      <fo:block><!-- remove this element to get correct output --> 
        <fo:table table-layout="fixed" width="100%" border="0.2pt solid green" border-collapse="separate">
          <fo:table-column column-width="proportional-column-width(1)"/>
          <fo:table-body>
            <fo:table-row>
              <fo:table-cell>
                <fo:block>Table 1 Cell</fo:block>
              </fo:table-cell>
            </fo:table-row>
          </fo:table-body>
        </fo:table>
        <fo:table table-layout="fixed" width="100%" border="0.2pt solid green" border-collapse="separate">
          <fo:table-column column-width="proportional-column-width(1)"/>
          <fo:table-body>
            <fo:table-row>
              <fo:table-cell>
                <fo:block>Table 2 Cell</fo:block>
              </fo:table-cell>
            </fo:table-row>
          </fo:table-body>
        </fo:table>
      </fo:block><!-- remove this element to get correct output --> 
    </fo:flow>
  </fo:page-sequence>
</fo:root>

Attachment: tables_correct.pdf
Description: Adobe PDF document

Attachment: tables_wrong.pdf
Description: Adobe PDF document

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to