Bug 44107 - <fo:block> keep-together behavior not as expected
Summary: <fo:block> keep-together behavior not as expected
Status: CLOSED INVALID
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: pdf (show other bugs)
Version: 0.94
Hardware: Other other
: P2 normal
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-19 12:54 UTC by Steve Mosley
Modified: 2012-04-01 13:49 UTC (History)
0 users



Attachments
FO file to show keep together behaviour (1.87 KB, text/plain)
2007-12-19 12:56 UTC, Steve Mosley
Details
Example of the Keep Together behaviour in .94 (4.41 KB, application/octet-stream)
2007-12-19 12:57 UTC, Steve Mosley
Details
Example of the Keep Together behaviour in .93 (4.43 KB, application/octet-stream)
2007-12-19 12:59 UTC, Steve Mosley
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Mosley 2007-12-19 12:54:43 UTC
After upgrading from FOP .93 to .94 a keep-together="always" on a block will
force the block to stay on a single line and go over the edge of the page.

Not 100% sure of what this is supposed to do, but it seems that always is
behaving like the 'within-line' in .94 option when in .93 it was behaving like
the 'within-page' option. And since 'within-line', 'within-page' options are not
supported (error in the logs saying FOP is ignoring them) we have no way of
forcing the block to stay on a single page.
Comment 1 Steve Mosley 2007-12-19 12:56:19 UTC
Created attachment 21296 [details]
FO file to show keep together behaviour
Comment 2 Steve Mosley 2007-12-19 12:57:07 UTC
Created attachment 21297 [details]
Example of the Keep Together behaviour in .94
Comment 3 Steve Mosley 2007-12-19 12:59:19 UTC
Created attachment 21298 [details]
Example of the Keep Together behaviour in .93
Comment 4 Steve Mosley 2007-12-19 13:00:31 UTC
Example Attatched
Comment 5 Jeremias Maerki 2007-12-19 23:58:39 UTC
In my opinion, this is not a bug. XSL 1.1 (chapter 5.11) says that:
keep-together="always"
is equivalent to a specification of
keep-together.within-line="always"
keep-together.within-column="always"
keep-together.within-page="always"

And I/we interpret the value "always" very strictly as opposed to other FO
implementations. If that is correct is a different discussion. Anyway, with 0.94
you get support for keep-together.within-line. Before the setting never had an
effect. The net effect is that FOP cannot break anywhere in the content and so
the whole text is one line which overflows as a consequence.

If you ask me, you have to adjust your stylesheet and use
keep-together.within-column (or .within-page although that doesn't work
properly, yet) instead of keep-together. I'm closing this issue as "INVALID",
but if anyone thinks this is wrong, please reopen.
Comment 6 Steve Mosley 2007-12-20 00:42:15 UTC
Thanks, Sorry my fault I thought it was 
keep-together="within-page"

but as you point out it is 

keep-together.within-page="always"
Comment 7 Glenn Adams 2012-04-01 13:49:31 UTC
batch transition to closed remaining pre-FOP1.0 resolved bugs