Bug 24740 - extra piece of row beetween the header and the first row of a long table
Summary: extra piece of row beetween the header and the first row of a long table
Status: CLOSED FIXED
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: general (show other bugs)
Version: 0.20.5
Hardware: PC All
: P3 normal
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-17 06:52 UTC by Philippe Drix
Modified: 2012-04-01 07:08 UTC (History)
0 users



Attachments
source code FO showing the bug (29.55 KB, text/plain)
2003-11-17 06:55 UTC, Philippe Drix
Details
result of the bug on the pdf (3.48 KB, application/pdf)
2003-11-17 07:00 UTC, Philippe Drix
Details
source code of a bug workaround (23.54 KB, text/plain)
2003-11-17 07:01 UTC, Philippe Drix
Details
pdf with the bug workaround (3.24 KB, application/pdf)
2003-11-17 07:03 UTC, Philippe Drix
Details
Fix table rendering bug for PDF, SVG, AWT (52.88 KB, patch)
2004-09-09 13:46 UTC, Anton Tagunov
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Philippe Drix 2003-11-17 06:53:00 UTC
Hi!
I have found a bug with fo:table-header and long tables.
My table is a big one (say 2 ou 3 pages long), and I get an extra piece of row 
beetween the header and the first row, on each page after the first page.
See attachment small-document.pdf.
The bug comes from an extra level of nested blocks:

            <fo:table-row>
               <fo:table-cell  padding="0.097cm"  border-top="none" 
border="0.002cm  solid #000000">
                  <fo:block>
                     	<fo:block color="#000000" font-family="sans-serif" font-
size="12pt"  font-weight="bold">
                        data 
                        </fo:block>
                  </fo:block>
               </fo:table-cell>
            </fo:table-row>

See the complete source code in attachment small-document.fo.

If I delete this extra outer block, the problem disappears.
See attachments small-document-without-bug.pdf and small-document-without-bug.fo
Comment 1 Philippe Drix 2003-11-17 06:55:39 UTC
Created attachment 9136 [details]
source code FO showing the bug
Comment 2 Philippe Drix 2003-11-17 07:00:10 UTC
Created attachment 9137 [details]
result of the bug on the pdf
Comment 3 Philippe Drix 2003-11-17 07:01:30 UTC
Created attachment 9138 [details]
source code of a bug workaround
Comment 4 Philippe Drix 2003-11-17 07:03:21 UTC
Created attachment 9139 [details]
pdf with the bug workaround
Comment 5 Andreas L. Delmelle 2003-11-17 22:33:00 UTC
When rendered with HEAD (--not the very latest code, so didn't create an 
attachment for it yet), the individual row-height gets tripled, while the extra 
space seems to disappear.

Perhaps best to focus on getting it to work right over there?
Comment 6 Anton Tagunov 2004-09-09 13:46:57 UTC
Created attachment 12679 [details]
Fix table rendering bug for PDF, SVG, AWT
Comment 7 Anton Tagunov 2004-09-09 13:53:44 UTC
Please disregard my attachement, it has been attached to this report by error.
Comment 8 Pascal Sancho 2007-11-20 00:59:55 UTC
Fixed in FOP 0.94 and probably earlier versions
Comment 9 Glenn Adams 2012-04-01 07:08:39 UTC
batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed