Re: nested blocks

Bertrand Delacretaz <[email protected]> Mon, 24 Jun 2002 17:16:03 +0200
Newsgroups gmane.text.xml.jfor.general
Organization codeconsult
Message-ID <[email protected]>
On Monday 24 June 2002 19:36, Eugene Madatov wrote:
>. . .
> <fo:block font-size="8pt" font-weight="bold">
>           This must be followed by empty paragraph.
>           <fo:block>&#160;</fo:block>
>           This comes after the empty paragraph.
> </fo:block>
>
> "This comes after the empty
> paragraph." string has default font name, size and decoration instead of
> font-size="8pt" and font-weight="bold".

That's a known issue in jfor, properties are not inherited correctly.
In this case you have to change to the following construct:

	<fo:block font-size="8pt" font-weight="bold">           
	This must be followed by empty paragraph.
	</fo:block>
           <fo:block>&#160;</fo:block>
	 <fo:block font-size="8pt" font-weight="bold">
	This comes after the empty paragraph.
	</fo:block>

Enclosing the whole thing in an fo:block should work too, but you don't get 
the usual benefit or properties inheritance.

That's unfortunately the way it works today - an area where the FOP 
integration should help a lot.

-Bertrand


-------------------------------------------------------
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/