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 Matthias Wessendorf <mw...@pironet-ndh.com> on 2005/06/13 12:02:05 UTC
[solved!] RE: [OT] new lines with XSL-FO
Thanks Pierre-Yves!
I got just the desired result by doing this
<fo:block linefeed-treatment="preserve" white-space-treatment="preserve" white-space-collapse="false">
:)
thanks to all for their ideas!
> -----Original Message-----
> From: Pierre-Yves Landuré [mailto:py.landure@dorigo.fr]
> Sent: Monday, June 13, 2005 11:54 AM
> To: fop-users@xmlgraphics.apache.org
> Subject: Re: [OT] new lines with XSL-FO
>
>
> here is my solution :
>
> <fo:block>
> Hello World
> <fo:inline
> font-stretch="ultra-condensed"> </fo:inline><fo:block/>
> a new line
> </fo:block>
>
> the font-stretch is to minimize the space width for not
> breacking alignement
> and it is not in the <fo:block/> to realy simulate a <br/>
>
> <fo:block> </fo:block> will simulate <br/> <br/> afaik.
>
> Pierre-Yves
>
> Matthias Wessendorf a écrit :
>
> >Hi guys,
> >
> >I've currently the problem, that I have one <fo:block>
> ...</fo:block> that contains my text.
> >
> >something like:
> >"Hello World
> >
> >a new line"
> >
> >The stuff get's rendered (by using Apache FOP) like "Hello
> World a new line"
> >
> >How do I have to modify my text that I see for the text in
> my PDF file like:
> >"Hello World
> >
> >a new line"
> >
> >
> >If I would like to render that text as HTML, I have to write
> something like
> >
> >"Hello World<br/>
> ><br/>
> >a new line"
> >
> >So how am I able to do this with XSL FO ?
> >
> >Thanks for any help, and sorry for to OT stuff ...
> >
> >Regards,
> >Matthias
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> >For additional commands, e-mail:
> fop-users-help@xmlgraphics.apache.org
> >
> >
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org