Discussion:
[jira] [Created] (FOP-2820) Top/Bottom borders and padding of block containers are repeated after the page break
(too old to reply)
Dan Caprioara (JIRA)
2018-10-09 08:48:00 UTC
Permalink
Dan Caprioara created FOP-2820:
----------------------------------

Summary: Top/Bottom borders and padding of block containers are repeated after the page break
Key: FOP-2820
URL: https://issues.apache.org/jira/browse/FOP-2820
Project: FOP
Issue Type: Bug
Components: layout/block
Affects Versions: 2.3
Reporter: Dan Caprioara


There is a big difference between a block and a block-container regarding the borders and padding when the page breaks.

The borders should be like this (this is a plain {{fo:block}}):
!image-2018-10-08-12-20-35-287.png!

But instead is like this ( this is a {{fo:block-container}}, ignore the text, see the borders):
!image-2018-10-08-12-17-46-171.png!

If you have a longer text in the block container and it spans on several pages then it starts to bleed out of the page.

I found a fix for that, I will post it below.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
Dan Caprioara (JIRA)
2018-10-09 08:49:00 UTC
Permalink
[ https://issues.apache.org/jira/browse/FOP-2820?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dan Caprioara updated FOP-2820:
-------------------------------
Attachment: fo-block.png
fo-block-container.png
Post by Dan Caprioara (JIRA)
Top/Bottom borders and padding of block containers are repeated after the page break
------------------------------------------------------------------------------------
Key: FOP-2820
URL: https://issues.apache.org/jira/browse/FOP-2820
Project: FOP
Issue Type: Bug
Components: layout/block
Affects Versions: 2.3
Reporter: Dan Caprioara
Priority: Major
Attachments: fo-block-container.png, fo-block.png
There is a big difference between a block and a block-container regarding the borders and padding when the page breaks.
!image-2018-10-08-12-20-35-287.png!
!image-2018-10-08-12-17-46-171.png!
If you have a longer text in the block container and it spans on several pages then it starts to bleed out of the page.
I found a fix for that, I will post it below.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
Dan Caprioara (JIRA)
2018-10-09 08:50:00 UTC
Permalink
[ https://issues.apache.org/jira/browse/FOP-2820?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dan Caprioara updated FOP-2820:
-------------------------------
Description:
There is a big difference between a block and a block-container regarding the borders and padding when the page breaks.

The borders should be like this (this is a plain {{fo:block}}):
!fo-block.png!

But instead is like this ( this is a {{fo:block-container -}} ignore the text, chck the borders):
!fo-block-container.png!

If you have a longer text in the block container and it spans on several pages then it starts to bleed out of the page.

I found a fix for that, I will post it below.

was:
There is a big difference between a block and a block-container regarding the borders and padding when the page breaks.

The borders should be like this (this is a plain {{fo:block}}):
!image-2018-10-08-12-20-35-287.png!

But instead is like this ( this is a {{fo:block-container}}, ignore the text, see the borders):
!image-2018-10-08-12-17-46-171.png!

If you have a longer text in the block container and it spans on several pages then it starts to bleed out of the page.

I found a fix for that, I will post it below.
Post by Dan Caprioara (JIRA)
Top/Bottom borders and padding of block containers are repeated after the page break
------------------------------------------------------------------------------------
Key: FOP-2820
URL: https://issues.apache.org/jira/browse/FOP-2820
Project: FOP
Issue Type: Bug
Components: layout/block
Affects Versions: 2.3
Reporter: Dan Caprioara
Priority: Major
Attachments: fo-block-container.png, fo-block.png
There is a big difference between a block and a block-container regarding the borders and padding when the page breaks.
!fo-block.png!
!fo-block-container.png!
If you have a longer text in the block container and it spans on several pages then it starts to bleed out of the page.
I found a fix for that, I will post it below.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
Dan Caprioara (JIRA)
2018-10-09 08:58:01 UTC
Permalink
[ https://issues.apache.org/jira/browse/FOP-2820?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dan Caprioara updated FOP-2820:
-------------------------------
Attachment: block-container_borders-padding-and-page-breaks.xml
Post by Dan Caprioara (JIRA)
Top/Bottom borders and padding of block containers are repeated after the page break
------------------------------------------------------------------------------------
Key: FOP-2820
URL: https://issues.apache.org/jira/browse/FOP-2820
Project: FOP
Issue Type: Bug
Components: layout/block
Affects Versions: 2.3
Reporter: Dan Caprioara
Priority: Major
Attachments: block-container_borders-padding-and-page-breaks.xml, fo-block-container.png, fo-block.png
There is a big difference between a block and a block-container regarding the borders and padding when the page breaks.
!fo-block.png!
!fo-block-container.png!
If you have a longer text in the block container and it spans on several pages then it starts to bleed out of the page.
I found a fix for that, I will post it below.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
Dan Caprioara (JIRA)
2018-10-09 09:02:00 UTC
Permalink
[ https://issues.apache.org/jira/browse/FOP-2820?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dan Caprioara updated FOP-2820:
-------------------------------
Attachment: fop.patch
Post by Dan Caprioara (JIRA)
Top/Bottom borders and padding of block containers are repeated after the page break
------------------------------------------------------------------------------------
Key: FOP-2820
URL: https://issues.apache.org/jira/browse/FOP-2820
Project: FOP
Issue Type: Bug
Components: layout/block
Affects Versions: 2.3
Reporter: Dan Caprioara
Priority: Major
Attachments: block-container_borders-padding-and-page-breaks.xml, fo-block-container.png, fo-block.png, fop.patch
There is a big difference between a block and a block-container regarding the borders and padding when the page breaks.
!fo-block.png!
!fo-block-container.png!
If you have a longer text in the block container and it spans on several pages then it starts to bleed out of the page.
I found a fix for that, I will post it below.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
Dan Caprioara (JIRA)
2018-10-09 09:04:00 UTC
Permalink
[ https://issues.apache.org/jira/browse/FOP-2820?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16643008#comment-16643008 ]

Dan Caprioara commented on FOP-2820:
------------------------------------

I have attached a patch and the test file for the layout engine.

The top padding and border are applied only at the beginning of the block container, on the first page.

The bottom padding and border are applied only at the end of the block container, on the last page.
Post by Dan Caprioara (JIRA)
Top/Bottom borders and padding of block containers are repeated after the page break
------------------------------------------------------------------------------------
Key: FOP-2820
URL: https://issues.apache.org/jira/browse/FOP-2820
Project: FOP
Issue Type: Bug
Components: layout/block
Affects Versions: 2.3
Reporter: Dan Caprioara
Priority: Major
Attachments: block-container_borders-padding-and-page-breaks.xml, fo-block-container.png, fo-block.png, fop.patch
There is a big difference between a block and a block-container regarding the borders and padding when the page breaks.
!fo-block.png!
!fo-block-container.png!
If you have a longer text in the block container and it spans on several pages then it starts to bleed out of the page.
I found a fix for that, I will post it below.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
Chris Bowditch (JIRA)
2018-10-15 08:13:00 UTC
Permalink
[ https://issues.apache.org/jira/browse/FOP-2820?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chris Bowditch updated FOP-2820:
--------------------------------
Summary: [PATCH] Top/Bottom borders and padding of block containers are repeated after the page break (was: Top/Bottom borders and padding of block containers are repeated after the page break)
[PATCH] Top/Bottom borders and padding of block containers are repeated after the page break
--------------------------------------------------------------------------------------------
Key: FOP-2820
URL: https://issues.apache.org/jira/browse/FOP-2820
Project: FOP
Issue Type: Bug
Components: layout/block
Affects Versions: 2.3
Reporter: Dan Caprioara
Priority: Major
Attachments: block-container_borders-padding-and-page-breaks.xml, fo-block-container.png, fo-block.png, fop.patch
There is a big difference between a block and a block-container regarding the borders and padding when the page breaks.
!fo-block.png!
!fo-block-container.png!
If you have a longer text in the block container and it spans on several pages then it starts to bleed out of the page.
I found a fix for that, I will post it below.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
Chris Bowditch (JIRA)
2018-10-15 08:18:00 UTC
Permalink
[ https://issues.apache.org/jira/browse/FOP-2820?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16649881#comment-16649881 ]

Chris Bowditch commented on FOP-2820:
-------------------------------------

I'm not sure this is a bug. A block-container has a different purpose to an fo:block. Did you check the specification?
Post by Chris Bowditch (JIRA)
[PATCH] Top/Bottom borders and padding of block containers are repeated after the page break
--------------------------------------------------------------------------------------------
Key: FOP-2820
URL: https://issues.apache.org/jira/browse/FOP-2820
Project: FOP
Issue Type: Bug
Components: layout/block
Affects Versions: 2.3
Reporter: Dan Caprioara
Priority: Major
Attachments: block-container_borders-padding-and-page-breaks.xml, fo-block-container.png, fo-block.png, fop.patch
There is a big difference between a block and a block-container regarding the borders and padding when the page breaks.
!fo-block.png!
!fo-block-container.png!
If you have a longer text in the block container and it spans on several pages then it starts to bleed out of the page.
I found a fix for that, I will post it below.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
Dan Caprioara (JIRA)
2018-10-30 10:52:00 UTC
Permalink
[ https://issues.apache.org/jira/browse/FOP-2820?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16668523#comment-16668523 ]

Dan Caprioara commented on FOP-2820:
------------------------------------

I tested with both AntennaHouse and XEP, and they do not repeat the top, bottom borders at the page breaks on the block containers as FOP does. In the specification and I do not see any difference between the fo:block and the fo:block-container regarding to borders/padding (https://www.w3.org/TR/xsl11/#d0e9451). So in my opinion this is a FOP bug.
Post by Chris Bowditch (JIRA)
[PATCH] Top/Bottom borders and padding of block containers are repeated after the page break
--------------------------------------------------------------------------------------------
Key: FOP-2820
URL: https://issues.apache.org/jira/browse/FOP-2820
Project: FOP
Issue Type: Bug
Components: layout/block
Affects Versions: 2.3
Reporter: Dan Caprioara
Priority: Major
Attachments: block-container_borders-padding-and-page-breaks.xml, fo-block-container.png, fo-block.png, fop.patch
There is a big difference between a block and a block-container regarding the borders and padding when the page breaks.
!fo-block.png!
!fo-block-container.png!
If you have a longer text in the block container and it spans on several pages then it starts to bleed out of the page.
I found a fix for that, I will post it below.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Loading...