Bug 19268 - fo:block with padding => region-body overwrites region-after
Summary: fo:block with padding => region-body overwrites region-after
Status: CLOSED FIXED
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: general (show other bugs)
Version: 0.20.5
Hardware: PC other
: P3 normal
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-24 08:08 UTC by Joachim Unger
Modified: 2012-04-01 06:58 UTC (History)
0 users



Attachments
xml data to be used (350 bytes, text/plain)
2003-04-24 08:09 UTC, Joachim Unger
Details
stylesheet to be transformed & rendered by FOP (9.43 KB, text/plain)
2003-04-24 08:10 UTC, Joachim Unger
Details
output with missing last line (2.34 KB, application/octet-stream)
2003-04-24 08:11 UTC, Joachim Unger
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joachim Unger 2003-04-24 08:08:28 UTC
The result are missing lines when page breaks are performs.
(All renderers)

Please have a look into the attachments!

Joachim Unger
Comment 1 Joachim Unger 2003-04-24 08:09:45 UTC
Created attachment 5987 [details]
xml data to be used
Comment 2 Joachim Unger 2003-04-24 08:10:31 UTC
Created attachment 5988 [details]
stylesheet  to be transformed & rendered by FOP
Comment 3 Joachim Unger 2003-04-24 08:11:12 UTC
Created attachment 5989 [details]
output with missing last line
Comment 4 Roger Wyatt 2003-10-14 10:06:12 UTC
When writing a table into the body of a page depending on weather the content 
of a cell in the last row that fits on that page wraps or not, FOP may write an 
extra row of the table into the 'region after'.   My Page layout is :

		<fo:simple-page-master master-name="basic-statement"
			page-height="297mm" 	page-width="210mm"
			margin-top="15mm"	margin-bottom="15mm"
			margin-left="15mm"	margin-right="15mm" >

			<fo:region-body	
				margin-top="&phd;" 	
				margin-bottom="&pft;"
				margin-left="&plft;"	
				margin-right="&prgt;"/>

			<fo:region-before	extent="&phd;"/>
			<fo:region-after 		extent="&pft;"/>
			<fo:region-start		extent="&plft;"/>
			<fo:region-end 		extent="&prgt;"/>
		</fo:simple-page-master>


For what it's worth the entities are: 
	<!ENTITY prgt "5mm">
	<!ENTITY plft "5mm">
	<!ENTITY phd  "60mm">  
	<!ENTITY pft  "20mm">  
Also I am using a 10mm pad-after on each table cell in the table

	So as far as I can see there should be no way that rows written into 
the main body can leak into the region after.  
        After some messing around I can correct the problem by chnaging the 
padding.  I chnaged all the 
		<fo:table-cell padding-before ="&bcellpad;">
	to
		<fo:table-cell padding-after="&bcellpad;">

and now it is OK.  I assume this is the same bug manifesting itself in a 
slightly different way.
Comment 5 Pascal Sancho 2007-10-23 08:16:14 UTC
Bug fixed in latest Trunk (rev 584703), and probably in FOP 0.94
Comment 6 Glenn Adams 2012-04-01 06:58:35 UTC
batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed