You can do this by using "
" in the source XML, like this: <textElement>Some
text
with
newlines
here.</textElement> This will put line-breaks into the fo file.
Then, in the <fo:block> say <fo:block white-space-collapse="false">Some text with newlines here.</fo:block> FOP will NOT collapse the whitespace, and leave the linebreaks to appear in the PDF. It works! Fred Evers -----Original Message----- From: Eric Smith [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 31, 2001 1:39 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: adding a newline in a block I like to have a newline within a block say to divide chapter, like I would have: <fo:block> Chapter text goes here and is .... quite ... a ... few ... lines ... long ... Then I want a newline (or two) Chapter two goes ... here ... </fo:block> I started putting something like <chapter_break/> in the xml, and then creating an extra block in the fo output and this worked, but some fo processors don't like it and I believe that what I do breaks some rules, what is the simplest / best way to have a visible newline (or two) in the output, without creating another <fo:block>? thanx -- Eric Smith - currently xalan and fop on linux
