You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Manuel Mall <mm...@arcus.com.au> on 2005/11/01 16:03:24 UTC
linefeed-treatment="preserve"
Assuming everything else is at default settings what is the expected
outcome for:
<fo:block linefeed-treatment="preserve">
line 1
</fo:block>
Is it a)
<empty line>
line 1
<empty line>
or b)
line 1
or c)
<empty line>
line 1
or d)
line 1
<empty line>
It seems we are doing c) at the moment which makes the above fo
identical to:
<fo:block linefeed-treatment="preserve">
line 1</fo:block>
Is that correct?
Manuel
Re: linefeed-treatment="preserve"
Posted by Chris Bowditch <bo...@hotmail.com>.
Manuel Mall wrote:
> Assuming everything else is at default settings what is the expected
> outcome for:
> <fo:block linefeed-treatment="preserve">
> line 1
> </fo:block>
>
> Is it a)
> <empty line>
> line 1
> <empty line>
>
> or b)
> line 1
>
> or c)
> <empty line>
> line 1
>
> or d)
> line 1
> <empty line>
>
> It seems we are doing c) at the moment which makes the above fo
> identical to:
> <fo:block linefeed-treatment="preserve">
> line 1</fo:block>
>
> Is that correct?
No, it should be (a) IMHO.
Chris
Re: linefeed-treatment="preserve"
Posted by Andreas L Delmelle <a_...@pandora.be>.
On Nov 2, 2005, at 01:39, Manuel Mall wrote:
> On Wed, 2 Nov 2005 05:14 am, Simon Pepping wrote:
>
>> On Tue, Nov 01, 2005 at 06:54:08PM +0100, Andreas L Delmelle wrote:
>>
>>> On Nov 1, 2005, at 16:03, Manuel Mall wrote:
>>>
>>>> Is it a)
>>>> <empty line>
>>>> line 1
>>>> <empty line>
>>>>
>>>
>>> This one, IMO.
>>>
>>
>> I agree, a)
>>
>>
> Same as Simon, Joerg and Andreas I thought a) as well but am now
> confused because both AntennaHouse and RenderX render:
FWIW: I'm sticking to my initial a).
Furthermore, I tried following the current whitespace removal
algorithm (fo.flow.Block.handleWhiteSpace()) for this particular
case, and IIC, it is handled pretty well --IOW: both linefeeds are
properly presented to the layout-engine, but it's somewhere in layout
that the decision is made to drop the trailing linefeed. Probably
because the feasible break after 'line1' gets 'merged' with the
forced line-break (or: what exactly does the algorithm do when it
encounters a mere break-possibility immediately followed by a forced
line-break?)
Cheers,
Andreas
Re: linefeed-treatment="preserve"
Posted by Manuel Mall <mm...@arcus.com.au>.
On Wed, 2 Nov 2005 05:14 am, Simon Pepping wrote:
> On Tue, Nov 01, 2005 at 06:54:08PM +0100, Andreas L Delmelle wrote:
> > On Nov 1, 2005, at 16:03, Manuel Mall wrote:
> > >Assuming everything else is at default settings what is the
> > > expected outcome for:
> > ><fo:block linefeed-treatment="preserve">
> > >line 1
> > ></fo:block>
> > >
> > >Is it a)
> > ><empty line>
> > >line 1
> > ><empty line>
> >
> > This one, IMO.
>
> I agree, a)
>
Same as Simon, Joerg and Andreas I thought a) as well but am now
confused because both AntennaHouse and RenderX render:
<empty line>
line 1
Also the following HTML:
<div style="white-space:pre">
line 1
</div>
renders in Firefox and Opera as:
<empty line>
line 1
that is it its identical to the output of:
<div style="white-space:pre">
line 1</div>
> Simon
Are we all missing something or ...
Manuel
Re: linefeed-treatment="preserve"
Posted by Simon Pepping <sp...@leverkruid.nl>.
On Tue, Nov 01, 2005 at 06:54:08PM +0100, Andreas L Delmelle wrote:
> On Nov 1, 2005, at 16:03, Manuel Mall wrote:
>
> >Assuming everything else is at default settings what is the expected
> >outcome for:
> ><fo:block linefeed-treatment="preserve">
> >line 1
> ></fo:block>
> >
> >Is it a)
> ><empty line>
> >line 1
> ><empty line>
>
> This one, IMO.
I agree, a)
Simon
--
Simon Pepping
home page: http://www.leverkruid.nl
Re: linefeed-treatment="preserve"
Posted by Andreas L Delmelle <a_...@pandora.be>.
On Nov 1, 2005, at 16:03, Manuel Mall wrote:
> Assuming everything else is at default settings what is the expected
> outcome for:
> <fo:block linefeed-treatment="preserve">
> line 1
> </fo:block>
>
> Is it a)
> <empty line>
> line 1
> <empty line>
This one, IMO.
<snip />
> It seems we are doing c) at the moment which makes the above fo
> identical to:
> <fo:block linefeed-treatment="preserve">
> line 1</fo:block>
>
> Is that correct?
Nope. Should be identical to:
<fo:block l-t="p">
line1
</fo:block>
Cheers,
Andreas