[
https://issues.apache.org/jira/browse/FOP-2402?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15137939#comment-15137939
]
Alexey Neyman commented on FOP-2402:
------------------------------------
Yeah, if the default orphan/widow is 2, that would force the line "A12" to the
next page, effectively preventing this bug from manifesting. I understand I
don't need to try the patch FOP-1488, as you reproduced this bug even with your
uncommitted changes? Also, if the number of orphans is an issue, the last
fo:list-item (A13) can be copied a few times more.
Truncation due to no line height adjustment is expected, in the original
document there are ample paddings to take care of that. I don't see the other
bug you mentioned (dropped content) in FOP 2.1 though - it just stops this
issue from manifesting (because the lines become bigger, A12 line is taken to
the next page).
But back to this issue: as I mentioned above, if the last line (A13) is
commented in the FO, all the content fits on the first page (all the A2..A12
lines and all three footnotes). I think it indicates that FOP originally
calculates the spacing required for all these blocks/footnotes correctly, but
then tries to fit the next line (A13), and failing that, starts a new page
(with just A13) and then overzealously relaxes the spacing in the first page,
disregarding the bottom space occupied by the footnotes. I'll attach a
rendering of the test case with that A13 line commented out.
> footnotes overlap regular content
> ---------------------------------
>
> Key: FOP-2402
> URL: https://issues.apache.org/jira/browse/FOP-2402
> Project: FOP
> Issue Type: Bug
> Components: layout/block
> Affects Versions: trunk
> Environment: Ubuntu 14.04, Java 1.7.0_55
> Reporter: Alexey Neyman
> Attachments: FOP-2402.pdf, bad.fo, bad.pdf
>
>
> 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.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)