You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by "Manjush G. Menon" <ma...@lycos.co.uk> on 2003/11/06 13:08:27 UTC

How to preserve newline?

I have an XML data with several paragraphs with newlines.
but the generated PDF doesnt preserve it.
How will i do it?

any help will be of great use.

Thanks
~~Manjush

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


Re: How to preserve newline?

Posted by "Manjush G. Menon" <ma...@lycos.co.uk>.
Thanks Christian,

but the requirement i have is like follws:
I will create the XML on the fly, from some user input fields.
so the character replacement will not hold. also, the same XML is streamed
back to the user in HTML. seperate <block> cannot be used as the XML node
is mapped in the HTML in one single node.

So what i was looking for is an explicit way to say that "I want to preserve
space for
my node". Hope you got me :-)

Thanks for the help
~~Manjush

----- Original Message -----
From: "Christian Geisert" <ch...@isu-gmbh.de>
To: <fo...@xml.apache.org>
Sent: Thursday, November 06, 2003 5:54 PM
Subject: Re: How to preserve newline?


> Manjush G. Menon wrote:
> > I have an XML data with several paragraphs with newlines.
> > but the generated PDF doesnt preserve it.
> > How will i do it?
>
> http://xml.apache.org/fop/fo.html#fo-preformat
>
> or wrap each paragraph in an extra <block>
>
> Christian
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
> For additional commands, e-mail: fop-user-help@xml.apache.org
>
>
>


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


Re: How to preserve newline?

Posted by Christian Geisert <ch...@isu-gmbh.de>.
Manjush G. Menon wrote:
> I have an XML data with several paragraphs with newlines.
> but the generated PDF doesnt preserve it.
> How will i do it?

http://xml.apache.org/fop/fo.html#fo-preformat

or wrap each paragraph in an extra <block>

Christian


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