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 Michail Bikoulis <Mi...@ementor.no> on 2001/11/01 14:54:30 UTC

RE: adding a newline in a block

Maybe you can use <fo:inline> in some way, but I'm not sure since I haven't
done it myself.

Idealy, you should modify your XML do be something like this:

<Chapter>
	Chapter text goes here and
	is ....
	quite ...
	a ...
	few ...
	lines ...
	long ...
</Chapter>
<Chapter>
	Chapter two
	goes ...
	here ...
</Chapter>

and then your FO can look like this:

<fo:block>
	Chapter text goes here and
	is ....
	quite ...
	a ...
	few ...
	lines ...
	long ...
</fo:block>
<fo:block space-before="6pt">
	Chapter two
	goes ...
	here ...
</fo:block>

Regards,

Mike

-----Original Message-----
From: Eric Smith [mailto:Eric.Smith@fruitcom.com]
Sent: 31. oktober 2001 19:39
To: fop-user@xml.apache.org; XSL-FO@yahoogroups.com
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