[jira] [Created] (FOP-3295) Text below a floating image gets too small spacing to the line above

"Daniel Norberg (Jira)" <[email protected]> Wed, 11 Feb 2026 15:44:00 +0000 (UTC)
Newsgroups gmane.text.xml.fop.devel
Message-ID <[email protected]>
Daniel Norberg created FOP-3295:
-----------------------------------

             Summary: Text below a floating image gets too small spacing to the line above
                 Key: FOP-3295
                 URL: https://issues.apache.org/jira/browse/FOP-3295
             Project: FOP
          Issue Type: Bug
    Affects Versions: 2.11
            Reporter: Daniel Norberg
         Attachments: image-2026-02-11-16-39-43-124.png, image.png, test.fo, test.pdf

This is about the case where you have a floating image to the right and text is flowing to the left of the image. If a text in a <fo:block> starts flowing to the left of the image but is so long that it ends below the image, then the first line that is printed below the image has a too small spacing to the line above. Here is a screenshot showing this:

!image-2026-02-11-16-39-43-124.png!

Since the text is in the same <fo:block> the spacing between all lines in this paragraph shall be the same, dictated by the line-height.

I attach a small FO and an image that can be used to reproduce the issue. I also attach a PDF produced with these files using FOP 2.11



--
This message was sent by Atlassian Jira
(v8.20.10#820010)