[jira] [Commented] (FOP-3289) The float related attribute "clear" should be supported

"Daniel Norberg (Jira)" <[email protected]> Thu, 12 Mar 2026 07:37:00 +0000 (UTC)
Newsgroups gmane.text.xml.fop.devel
Message-ID <[email protected]>
    [ https://issues.apache.org/jira/browse/FOP-3289?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18065293#comment-18065293 ] 

Daniel Norberg commented on FOP-3289:
-------------------------------------

Thank you, you are right, the clear should be on the "chapter 2" block, I will update the FO. It does not change the outcome though since the clear attribute is simply ignored.

Also thanks for your workaround but it does not work generally speaking, here I have added a long paragraph that floats around the image, then there is a 40mm space to chapter to from the long paragraph.

!image-2026-03-12-08-32-39-081.png!

When I asked chat GPT how easy it would be to add support of clear attribute to FOP it said it is not an easy task since it has implications on the core layout manager (which sounded logical). Hopefully it can be fixed sometimes anyway. I am a programmer myself and could perhaps become a contributor to FOP in the future.

> The float related attribute "clear" should be supported
> -------------------------------------------------------
>
>                 Key: FOP-3289
>                 URL: https://issues.apache.org/jira/browse/FOP-3289
>             Project: FOP
>          Issue Type: Improvement
>    Affects Versions: 2.11
>            Reporter: Daniel Norberg
>            Priority: Major
>         Attachments: image-2026-01-12-14-50-33-854.png, image-2026-03-12-08-32-39-081.png, image.png, test.fo, test_originalFixed.fo
>
>
> Currently, as stated on the home page, the float related attribute "clear" is not supported in FOP. This creates issues if you, for example, want to start a new chapter on the same page but the content flowing next to the float object in the previous chapter has not reached the end of the float object.
> Here is a screenshot showing the issue. I want chapter 2 to start after the end of the float image; chapter 2 should not be affected by the float image in the previous chapter. This would be possible if the clear attribute was supported.
> !image-2026-01-12-14-50-33-854.png!
> I have attached a simple FO (test.fo) and an image (image.png) that can be used for reproducing this example.
> https://xmlgraphics.apache.org/fop/fo.html#floats



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