Tables with split rows have extra padding in the second row

shannonxtreme
Posts: 24
Joined: Fri Aug 24, 2018 4:27 pm

Tables with split rows have extra padding in the second row

Post by shannonxtreme » Thu Mar 21, 2019 9:20 pm

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>

Dan
Posts: 430
Joined: Mon Feb 03, 2003 10:56 am

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

Post by Dan » Fri Mar 22, 2019 1:26 pm

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

Post Reply