Page 1 of 1

Tables with split rows have extra padding in the second row

Posted: Thu Mar 21, 2019 9:20 pm
by shannonxtreme
In tables with split rows (see below), if the row is split into two rows from the second column onwards, the second row has extra padding on the bottom. If there are 3 or more rows in the split, there is no spacing problem. The only padding rule we have is 0.5em padding-top and 0.25em padding-bottom for <entry> elements. How do we ensure even row height?

Code: Select all


		<table id="table_BBE1B8193AB5472D9756799F64695585"> 
<tgroup cols="4"><colspec colnum="1" colname="col1"
colwidth="1in"/><colspec colnum="2" colname="col2" colwidth="1.85in"/><colspec
colnum="3" colname="col3" colwidth="2in"/><colspec colnum="4" colname="col4"
colwidth="2in"/><thead>
<row>
<entry colname="col1">Tax Year
</entry>
<entry colname="col2">Beneficiary
</entry>
<entry colname="col3">Records in the *** Outgoing File
</entry>
<entry colname="col4">Record Version
</entry>
</row></thead>
<tbody>
<row>
<entry colname="col1" morerows="1">2014
</entry>
<entry colname="col2">Beneficiary 1
</entry>
<entry colname="col3"> **** – Inter Plan Transfer
</entry>
<entry colname="col4"> Original
</entry>
</row>
<row>
<entry colname="col2">Beneficiary 2
</entry>
<entry colname="col3"> **** – Inter Plan Transfer
</entry>
<entry colname="col4"> Original
</entry>
</row>
<row>
<entry colname="col1" morerows="3">2015
</entry>
<entry colname="col2">Beneficiary 1
</entry>
<entry colname="col3"> **** – Annual Contribution
</entry>
<entry colname="col4"> Cancelled
</entry>
</row>
<row>
<entry colname="col2">Beneficiary 1
</entry>
<entry colname="col3"> **** – Annual Contribution
</entry>
<entry colname="col4"> Amended
</entry>
</row>
<row>
<entry colname="col2">Beneficiary 2
</entry>
<entry colname="col3"> **** – Annual Contribution
</entry>
<entry colname="col4"> Cancelled
</entry>
</row>
<row>
<entry colname="col2">Beneficiary 2
</entry>
<entry colname="col3"> **** – Annual Contribution
</entry>
<entry colname="col4"> Amended
</entry>
</row>
</tbody>
</tgroup>
</table>

Re: Tables with split rows have extra padding in the second row

Posted: Fri Mar 22, 2019 1:26 pm
by Dan
Hello,

What scenario are you using? The one based on HTML?

I tested with:

Code: Select all


*[class ~= 'topic/entry'] {
padding-top:0.5em;
padding-bottom:0.25em;
color:green;
}
and I see that the text is aligned correctly on the baseline of the table row.

I recommend to try a transformation without a CSS customization (the default transformation scenario from oXygen) and see what happens. Then add the CSS snippet above to new customization and check again the PDF output. If it is ok, add parts of your customization and identify the one that breaks the layout.

If you still have problems, contact us on the technical support form and give us some screenshots and your customization CSS.

Many regards,
Dan