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 Gang Li <ga...@resolutionebs.com> on 2005/03/29 22:59:48 UTC
in XSLFO
Anybody know how can I get a line break like <br> in HTML? Thanks.
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
RE:
in XSLFO
Posted by "Andreas L. Delmelle" <a_...@pandora.be>.
> -----Original Message-----
> From: Gang Li [mailto:gang.li@resolutionebs.com]
>
Hi,
> Anybody know how can I get a line break like <br> in HTML? Thanks.
Ending the current fo:block should work fine... Another option would be to
insert an explicit line-feed character
(numeric character reference 
 [*]), although in some cases, this might
get converted into a space.
I'd go with the first option... I'm guessing, right now, you're trying to do
sth like:
<fo:block>
some text goes here <!-- here you need <br /> -->
some other text
</fo:block>
So, the simplest would be to make it
<fo:block>some text goes here</fo:block>
<fo:block>some other text</fo:block>
The second option would be
<fo:block>some text goes here 
 some other text</fo:block>
HTH!
Andreas
[*] http://xml.apache.org/fop/fo.html#xml-special-chars
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
RE:
in XSLFO
Posted by Victor Mote <vi...@outfitr.com>.
Gang Li wrote:
> Anybody know how can I get a line break like <br> in HTML? Thanks.
Putting a linefeed character U+000A in the content should work, but you have
to be careful of the properties that affect it, specifically
linefeed-treatment="preserve". (I can't remember whether this works in FOP
0.20.5 or not, but I think it does). The other way is to put an empty nested
block, <fo:block/> where you want the line break, and I am pretty sure that
does work.
Victor Mote
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org