Re: Extra space between following tables

2006-06-02 Thread Andreas L Delmelle

On Jun 1, 2006, at 14:16, Jeremias Maerki wrote:


Andreas, I'm more than happy to delegate this to you if you volunteer
because I have more than enough on my plate already. Thanks.


Done. Turned out to be a very easy fix indeed.

I'll also add the FO as a testcase for future reference shortly.
Locally, the output seemed OK and didn't break anything, so I saw no  
reason to wait with the sources.



Later,

Andreas


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Extra space between following tables

2006-06-01 Thread Andreas L Delmelle

On Jun 1, 2006, at 10:21, Jeremias Maerki wrote:

No, actually it seems to be a bug. FOP's white space handling only  
seems

to handle linefeeds correctly around fo:block and not around other
block-level elements such as fo:table and fo:list-block. I'll look  
into

it.


Hmm... I think I know exactly why: the algorithm resets only on  
nested Blocks. I guess, at the time I was too focused on the FOs that  
can contain text-nodes themselves... Sorry. :(


Allow me (unless you insist, of course ;)) I'll look into it tonight.  
It shouldn't be too hard to trigger the reset on encountering certain  
types of FO, instead of only on fo:blocks.



Later,

Andreas 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Extra space between following tables

2006-06-01 Thread Jeremias Maerki
Andreas, I'm more than happy to delegate this to you if you volunteer
because I have more than enough on my plate already. Thanks.

On 01.06.2006 13:04:29 Andreas L Delmelle wrote:
 On Jun 1, 2006, at 10:21, Jeremias Maerki wrote:
 
  No, actually it seems to be a bug. FOP's white space handling only  
  seems
  to handle linefeeds correctly around fo:block and not around other
  block-level elements such as fo:table and fo:list-block. I'll look  
  into
  it.
 
 Hmm... I think I know exactly why: the algorithm resets only on  
 nested Blocks. I guess, at the time I was too focused on the FOs that  
 can contain text-nodes themselves... Sorry. :(
 
 Allow me (unless you insist, of course ;)) I'll look into it tonight.  
 It shouldn't be too hard to trigger the reset on encountering certain  
 types of FO, instead of only on fo:blocks.


Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Extra space between following tables

2006-05-30 Thread Pascal Sancho
 -Original Message-
 From: Martin Zak [mailto:[EMAIL PROTECTED] 
 
 I'm rendering several simple tables one by one and 
 experiencing the extra space between them.
 This space has no (IMHO) any reason, as tables has no space 
 before/after or margin defined.
 I attached the simple example - two tables with one row and 
 one cell, border defined on the table element to see the table block.
 
 When tables are placed as direct children of fo:flow, the 
 output is correct - no space between.
 When I enclose these two tables to single fo:block, suddenly 
 there is extra space rendered.
 ===
 FOP version: 0.92beta
 Attachments:
 - tables.fo (source to render table_bug_wrong.pdf)
 - tables_wrong.pdf (tables with extra space between)
 - tables_correct.pdf (correct output after removing the 
 enclosing fo:block) ===

Hi,
I think this happens because there is some extra space before or after
tables, due to allocation rectangle, determinded by the
line-stacking-strategy trait.
I suppose this is a correct rendering, but I'm not sure.

Try to set both line-height and font-size to 0pt (if not specified,
line-height defaults to 1.2 font-size).
If you do that, you'll need to reset font-size/line-height to your
tables, inserting for example a fo:wrapper between fo:block and
fo:table.

HTH

Pascal


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]