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 Raimund Kammering <Ra...@desy.de> on 2002/10/24 11:19:54 UTC

Substitute or implementation of linefeed-treatment

Hello,

sorry if I missed some discussions in case that this topic has
already been addressed - but I haven't been listening to FOP list
for some months.
So to come to the point: I need to format a document and conserve
the line breaks as they are delivered by the parser. So I added
a "linefeed-treatment="preserve" to the fo:block but FOP complained
that the linefeed-treatment is not supported up till now (I am running
FOP 0.20.3)?!
Is there an easy solution to my problem?! Any help is welcome.

Regards Raimund

PS.: I nearly don't want to ask - but is there anything new concerning
the "keep-with" handling - as I said I have been away for some time???
-- 
DESY -MVP-
Notkestrasse 85
D-22603 Hamburg
Tel.: +49 40 8998 -4903
e-mail: Raimund.Kammering@desy.de


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: Substitute or implementation of linefeed-treatment

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Raimund Kammering wrote:
> So to come to the point: I need to format a document and conserve
> the line breaks as they are delivered by the parser. So I added
> a "linefeed-treatment="preserve" to the fo:block but FOP complained
> that the linefeed-treatment is not supported up till now (I am running
> FOP 0.20.3)?!

Try white-space-collapse="false", which also preserves runs of white
space. If this isn't desirable, replace your line feed characters with
the line separator character U+2028, in XSLT
  translate($string,&#xA,&#x2028)

> PS.: I nearly don't want to ask - but is there anything new concerning
> the "keep-with" handling - as I said I have been away for some time???

Just search the archive.

J.Pietschmann


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org