xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michail Bikoulis <Michail.Bikou...@ementor.no>
Subject RE: adding a newline in a block
Date Thu, 01 Nov 2001 13:54:30 GMT
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

Mime
View raw message