To preserve the line-break formatting you can use the white-space-collapse
="false" option of fo:block.  For example:

<fo:block start-indent="72pt + 12pt">java_lang_Throwable<fo:block
space-before="0.6em" space-after="0.6em" white-space="pre"
white-space-collapse="false" wrap-option="wrap" background-color="#e0e0e0"
font-family="monospace" line-height="106%" end-indent="24pt" start-indent
="72pt" font-size="72%">
Line one
Line two
Line three
</fo:block>

Regards,
Ian

Ian Larner
User Technologies, IBM Hursley Lab, England
Internal: 246440    External: +44 1962 816440    Fax: +44 9162 816151
Mailpoint 095         email: [EMAIL PROTECTED]

"The credit belongs to the man ...in the arena,  (who) knowing there is no
effort without ...shortcomings, actually strives to do the deeds..."
Theodore Roosevelt
 --- Romain Bourgue <[EMAIL PROTECTED]> wrote: > I'm using
XSLT with FOP to
genarate PDF from XML files.
> In my XML tags I have text "pre"-formated (with break lines).
> When I put this text into a block, it turns all lines into one same
compact
> block.
> As "white-space" is not implemented yet in fo:blocks I'd like to know if
> there is a way to keep my break line in my fo:block ?



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

Reply via email to