Hi FOP developers,

We've noticed yet another issue with the rendering of the footnotes where 
the footnote is rendered over the regular content. Verified with top-of-trunk 
FOP, r1615966. Please refer to the attached FO/PDF files.

Curiously, if the last fo:list-item is commented out, the preceding fo:list-
items are placed more tightly and as a result, the footnotes do not overlap 
with the regular content. This suggests that there's a bug in how the space 
between blocks is calculated, but I haven't debugged it further yet.

Any off-hand ideas what may be causing this?

Regards,
Alexey.
<?xml version="1.0"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"; font-size="10pt" line-height-shift-adjustment="disregard-shifts"><fo:layout-master-set><fo:simple-page-master master-name="body" page-width="72000mpt" page-height="212000mpt"><fo:region-body column-count="1"/></fo:simple-page-master></fo:layout-master-set><fo:page-sequence master-reference="body"><fo:flow flow-name="xsl-region-body"><fo:list-block><fo:list-item><fo:list-item-label><fo:block/></fo:list-item-label><fo:list-item-body><fo:block space-before.optimum="5pt" space-before.minimum="4pt" space-before.maximum="6pt">
        <fo:list-block><fo:list-item space-before.optimum="5pt" space-before.minimum="4pt" space-before.maximum="6pt"><fo:list-item-label><fo:block/></fo:list-item-label><fo:list-item-body><fo:block><fo:block space-before.optimum="5pt" space-before.minimum="4pt" space-before.maximum="6pt">A2</fo:block></fo:block></fo:list-item-body></fo:list-item><fo:list-item space-before.optimum="5pt" space-before.minimum="4pt" space-before.maximum="6pt"><fo:list-item-label><fo:block/></fo:list-item-label><fo:list-item-body><fo:block><fo:block space-before.optimum="5pt" space-before.minimum="4pt" space-before.maximum="6pt">A3</fo:block></fo:block></fo:list-item-body></fo:list-item><fo:list-item space-before.optimum="5pt" space-before.minimum="4pt" space-before.maximum="6pt"><fo:list-item-label><fo:block/></fo:list-item-label><fo:list-item-body><fo:block><fo:block space-before.optimum="5pt" space-before.minimum="4pt" space-before.maximum="6pt">A4</fo:block></fo:block></fo:list-item-body></fo:list-item><fo:list-item space-before.optimum="5pt" space-before.minimum="4pt" space-before.maximum="6pt"><fo:list-item-label><fo:block/></fo:list-item-label><fo:list-item-body><fo:block><fo:block space-before.optimum="5pt" space-before.minimum="4pt" space-before.maximum="6pt">A5
        </fo:block></fo:block></fo:list-item-body></fo:list-item><fo:list-item space-before.optimum="5pt" space-before.minimum="4pt" space-before.maximum="6pt"><fo:list-item-label><fo:block/></fo:list-item-label><fo:list-item-body><fo:block><fo:block space-before.optimum="5pt" space-before.minimum="4pt" space-before.maximum="6pt">A6</fo:block></fo:block></fo:list-item-body></fo:list-item><fo:list-item space-before.optimum="5pt" space-before.minimum="4pt" space-before.maximum="6pt"><fo:list-item-label><fo:block/></fo:list-item-label><fo:list-item-body><fo:block><fo:block space-before.optimum="5pt" space-before.minimum="4pt" space-before.maximum="6pt">A7</fo:block></fo:block></fo:list-item-body></fo:list-item><fo:list-item space-before.optimum="5pt" space-before.minimum="4pt" space-before.maximum="6pt"><fo:list-item-label><fo:block/></fo:list-item-label><fo:list-item-body><fo:block><fo:block space-before.optimum="5pt" space-before.minimum="4pt" space-before.maximum="6pt">A8</fo:block></fo:block></fo:list-item-body></fo:list-item><fo:list-item space-before.optimum="5pt" space-before.minimum="4pt" space-before.maximum="6pt"><fo:list-item-label><fo:block/></fo:list-item-label><fo:list-item-body><fo:block><fo:block space-before.optimum="5pt" space-before.minimum="4pt" space-before.maximum="6pt">A9</fo:block></fo:block></fo:list-item-body></fo:list-item><fo:list-item space-before.optimum="5pt" space-before.minimum="4pt" space-before.maximum="6pt"><fo:list-item-label><fo:block/></fo:list-item-label><fo:list-item-body><fo:block><fo:block space-before.optimum="5pt" space-before.minimum="4pt" space-before.maximum="6pt">A10<fo:footnote><fo:inline><fo:inline font-size="75%" baseline-shift="super">1</fo:inline></fo:inline><fo:footnote-body font-size="8pt"><fo:block><fo:inline font-size="75%" baseline-shift="super">1</fo:inline>this is footnote 1</fo:block></fo:footnote-body></fo:footnote></fo:block></fo:block></fo:list-item-body></fo:list-item><fo:list-item space-before.optimum="5pt" space-before.minimum="4pt" space-before.maximum="6pt"><fo:list-item-label><fo:block/></fo:list-item-label><fo:list-item-body><fo:block><fo:block space-before.optimum="5pt" space-before.minimum="4pt" space-before.maximum="6pt">A11<fo:footnote><fo:inline><fo:inline font-size="75%" baseline-shift="super">2</fo:inline></fo:inline><fo:footnote-body font-size="8pt"><fo:block><fo:inline font-size="75%" baseline-shift="super">2</fo:inline>this is footnote 2</fo:block></fo:footnote-body></fo:footnote></fo:block></fo:block></fo:list-item-body></fo:list-item><fo:list-item space-before.optimum="5pt" space-before.minimum="4pt" space-before.maximum="6pt"><fo:list-item-label><fo:block/></fo:list-item-label><fo:list-item-body><fo:block><fo:block space-before.optimum="5pt" space-before.minimum="4pt" space-before.maximum="6pt">A12<fo:footnote><fo:inline><fo:inline font-size="75%" baseline-shift="super">3</fo:inline></fo:inline><fo:footnote-body font-size="8pt"><fo:block><fo:inline font-size="75%" baseline-shift="super">3</fo:inline>this is footnote 3</fo:block></fo:footnote-body></fo:footnote></fo:block></fo:block></fo:list-item-body></fo:list-item><!-- Comment the next fo:list-item and the footnotes now render properly --><fo:list-item space-before.optimum="5pt" space-before.minimum="4pt" space-before.maximum="6pt"><fo:list-item-label><fo:block/></fo:list-item-label><fo:list-item-body><fo:block><fo:block space-before.optimum="5pt" space-before.minimum="4pt" space-before.maximum="6pt">A13</fo:block></fo:block></fo:list-item-body></fo:list-item></fo:list-block>
      </fo:block></fo:list-item-body></fo:list-item></fo:list-block></fo:flow></fo:page-sequence></fo:root>

Attachment: bad.pdf
Description: Adobe PDF document

Reply via email to