RE: linefeed-treatment in cell problem

2008-01-26 Thread Raphael Parree
Andreas,

Thanks for your reply..
Indeed putting keep-together.within-page=always on the fo:block for which
I want to preserve the linefeed does the trick.
Does not seem logical however...this behavior has been introduced in recent
updates to the trunk (somewhere between jan 20 and yesterday morning).

Attached is an FO:
-First example block linefeed is preserved (outside table)
-Second block, linefeed is not preserved (inside table)
-third block, linefeed is preserved (inside table and using the suggestion
from Andreas, adding the keep-together.within-page=always)

Is this the correct behavior?

Tx.,

Raphael


-Original Message-
From: Andreas Delmelle [mailto:[EMAIL PROTECTED] 
Sent: 25 January 2008 18:50
To: fop-users@xmlgraphics.apache.org
Subject: Re: linefeed-treatment in cell problem

On Jan 25, 2008, at 16:38, Raphael Parree wrote:

Hi

 With the current version from the trunk the linefeed-treatment  
 preserve on a block in a table cell does not seem to work. The  
 enclosed fo file illustrates this.



There was a recent post about this, IIRC...
Try substituting 'keep-together=always' with 'keep-together.within- 
page=always'.

The explanation
keep-together=always is semantically equivalent to
keep-together.within-page=always, keep-together.within- 
column=always *and* keep-together.within-line=always

I'm not sure whether it is compliant behavior that a keep.within-line  
overrules preserved linefeeds, but that is what happens right now.

HTH!

Cheers

Andreas

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


linefeed-treatment.fo
Description: Binary data
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: linefeed-treatment in cell problem

2008-01-26 Thread Vincent Hennebert
Hi Raphael,

Apart from Andreas’ question about whether keep-with-next.within-line
should override linefeed-treatment or not (I’d say no), the behaviour
looks correct to me.

If you put a keep-together=always on the first block you will get the
same result as for the second one. I don’t see what could have affected
that in the commits from the 20th of January. However, I did commit
a fix on the 9th, changing the inheritability of the keep-together
property to true, as required by the XSL-FO spec. That’s probably what
started to trigger such a behaviour.

HTH,
Vincent


Raphael Parree a écrit :
 Andreas,

 Thanks for your reply..
 Indeed putting keep-together.within-page=always on the fo:block for which
 I want to preserve the linefeed does the trick.
 Does not seem logical however...this behavior has been introduced in recent
 updates to the trunk (somewhere between jan 20 and yesterday morning).

 Attached is an FO:
 -First example block linefeed is preserved (outside table)
 -Second block, linefeed is not preserved (inside table)
 -third block, linefeed is preserved (inside table and using the suggestion
 from Andreas, adding the keep-together.within-page=always)

 Is this the correct behavior?

 Tx.,

 Raphael


 -Original Message-
 From: Andreas Delmelle [mailto:[EMAIL PROTECTED]
 Sent: 25 January 2008 18:50
 To: fop-users@xmlgraphics.apache.org
 Subject: Re: linefeed-treatment in cell problem

 On Jan 25, 2008, at 16:38, Raphael Parree wrote:

 Hi

 With the current version from the trunk the linefeed-treatment
 preserve on a block in a table cell does not seem to work. The
 enclosed fo file illustrates this.



 There was a recent post about this, IIRC...
 Try substituting 'keep-together=always' with 'keep-together.within-
 page=always'.

 The explanation
 keep-together=always is semantically equivalent to
 keep-together.within-page=always, keep-together.within-
 column=always *and* keep-together.within-line=always

 I'm not sure whether it is compliant behavior that a keep.within-line
 overrules preserved linefeeds, but that is what happens right now.

 HTH!

 Cheers

 Andreas

-- 
Vincent HennebertAnyware Technologies
http://people.apache.org/~vhennebert http://www.anyware-tech.com
Apache FOP Committer FOP Development/Consulting

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



RE: linefeed-treatment in cell problem

2008-01-26 Thread Raphael Parree
Hi Vincent,

Thanks for the response. In fact the linefeed was preserved until the update
I made yesterday and it worked that way for many years now..,the last
version for which I know for sure the linefeed was preserved was January 20.

Ok I understand it is expected behavior. 

Thanks,

Have a great weekend all,

Raphael



-Original Message-
From: Vincent Hennebert [mailto:[EMAIL PROTECTED] 
Sent: 26 January 2008 14:46
To: fop-users@xmlgraphics.apache.org
Subject: Re: linefeed-treatment in cell problem

Hi Raphael,

Apart from Andreas’ question about whether keep-with-next.within-line
should override linefeed-treatment or not (I’d say no), the behaviour
looks correct to me.

If you put a keep-together=always on the first block you will get the
same result as for the second one. I don’t see what could have affected
that in the commits from the 20th of January. However, I did commit
a fix on the 9th, changing the inheritability of the keep-together
property to true, as required by the XSL-FO spec. That’s probably what
started to trigger such a behaviour.

HTH,
Vincent


Raphael Parree a écrit :
 Andreas,

 Thanks for your reply..
 Indeed putting keep-together.within-page=always on the fo:block for
which
 I want to preserve the linefeed does the trick.
 Does not seem logical however...this behavior has been introduced in
recent
 updates to the trunk (somewhere between jan 20 and yesterday morning).

 Attached is an FO:
 -First example block linefeed is preserved (outside table)
 -Second block, linefeed is not preserved (inside table)
 -third block, linefeed is preserved (inside table and using the suggestion
 from Andreas, adding the keep-together.within-page=always)

 Is this the correct behavior?

 Tx.,

 Raphael


 -Original Message-
 From: Andreas Delmelle [mailto:[EMAIL PROTECTED]
 Sent: 25 January 2008 18:50
 To: fop-users@xmlgraphics.apache.org
 Subject: Re: linefeed-treatment in cell problem

 On Jan 25, 2008, at 16:38, Raphael Parree wrote:

 Hi

 With the current version from the trunk the linefeed-treatment
 preserve on a block in a table cell does not seem to work. The
 enclosed fo file illustrates this.



 There was a recent post about this, IIRC...
 Try substituting 'keep-together=always' with 'keep-together.within-
 page=always'.

 The explanation
 keep-together=always is semantically equivalent to
 keep-together.within-page=always, keep-together.within-
 column=always *and* keep-together.within-line=always

 I'm not sure whether it is compliant behavior that a keep.within-line
 overrules preserved linefeeds, but that is what happens right now.

 HTH!

 Cheers

 Andreas

-- 
Vincent HennebertAnyware Technologies
http://people.apache.org/~vhennebert http://www.anyware-tech.com
Apache FOP Committer FOP Development/Consulting

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


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



Re: linefeed-treatment in cell problem

2008-01-25 Thread Andreas Delmelle

On Jan 25, 2008, at 16:38, Raphael Parree wrote:

Hi

With the current version from the trunk the linefeed-treatment  
preserve on a block in a table cell does not seem to work. The  
enclosed fo file illustrates this.





There was a recent post about this, IIRC...
Try substituting 'keep-together=always' with 'keep-together.within- 
page=always'.


The explanation
keep-together=always is semantically equivalent to
keep-together.within-page=always, keep-together.within- 
column=always *and* keep-together.within-line=always


I'm not sure whether it is compliant behavior that a keep.within-line  
overrules preserved linefeeds, but that is what happens right now.


HTH!

Cheers

Andreas

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