Bug 42036 - Page Break from within a table row with set height works unreliable
Summary: Page Break from within a table row with set height works unreliable
Status: CLOSED FIXED
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: general (show other bugs)
Version: 0.93
Hardware: Other other
: P2 normal
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-03 06:58 UTC by Thomas Gelzh
Modified: 2012-04-01 07:03 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Gelzh 2007-04-03 06:58:38 UTC
From the discussion on fop-users:

Dirk:
I've got some strange behaviour of the fop-mechanisms when I try to 
force a page break from within a table. Basically the page breaks 
seem to have no effect, as long as the height of an enclosing row 
is not reached. I'm using fop-0.93.

Vincent:
Indeed. Any forced break occuring before the minimum row height is
reached is removed. I vaguely remember a post on fop-dev explaining the
reason of such a behavior, but I can't retrieve it.
Anyway, this doesn't look desirable to me, and your question seems to
confirm my feeling ;-) Any other opinions on this?

Andreas:
Even funnier is that, if you add a bit of text after the block with
the forced break, that text simply gets swallowed. It disappears with
the page-break.

Example for illustration:

<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"><!-- defines page layout -->
	<fo:layout-master-set>
		<fo:simple-page-master master-name="1" page-height="297mm"
			page-width="210mm">
			<fo:region-body />
		</fo:simple-page-master>
	</fo:layout-master-set>
	<fo:page-sequence master-reference="1">
		<fo:flow flow-name="xsl-region-body">
			<fo:table table-layout="fixed" width="100%">
				<fo:table-body>
					<fo:table-row height="10">
						<fo:table-cell display-align="auto"
							text-align="start">
							<fo:block linefeed-treatment="ignore"
								font-family="Helvetica" font-size="12pt">
								Page 1
							</fo:block>
						</fo:table-cell>
					</fo:table-row>
					<fo:table-row height="10">
						<fo:table-cell display-align="auto"
							text-align="start">
							<fo:block break-after="page" />
						</fo:table-cell>
					</fo:table-row>
					<fo:table-row>
						<fo:table-cell display-align="auto"
							text-align="start">
							<fo:block linefeed-treatment="ignore"
								font-family="Helvetica" font-size="12pt">
								Page 2
							</fo:block>
						</fo:table-cell>
					</fo:table-row>
				</fo:table-body>
			</fo:table>
		</fo:flow>
	</fo:page-sequence>
</fo:root>
Comment 1 Vincent Hennebert 2008-03-12 02:36:20 UTC
Fixed in rev. 635686.
Comment 2 Glenn Adams 2012-04-01 07:03:47 UTC
batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed