Hi Andreas - 

FOP is bundled into another application I am using, and I'm not sure of
the version.  I'm looking into the FOP version.

This didn't work for me, unfortunately:
<fo:block
   space-after.optimum="1.2em"
   space-after.conditionality="retain"
   space-after.precedence="force" />

Should this work in all versions of FOP to create a blank line in an
RTF?

Thanks, 
Ted


-----Original Message-----
From: Andreas Delmelle [mailto:[email protected]] 
Sent: Friday, June 26, 2009 9:34 AM
To: [email protected]
Subject: Generating an empty line (was: Re: fop-users Digest 26 Jun 2009
10:01:24 -0000 Issue 1840)

On 26 Jun 2009, at 15:13, Ted Walker wrote:

Hi Ted

Ignore my earlier reply for the moment, as I just realized I was a bit  
too hasty there...

The most important question is: which FOP version are you using?
I sincerely hope you're not stuck on 0.20.x, since it is notoriously  
non-compliant in terms of respecting preserved linefeeds and white- 
space...

> I've got an XSL FO that looks good to me, but the FOP processor  
> seems to
> be ignoring empty blocks and blocks with whitespace.
>
> The output I desire I am trying to achieve is:
> --------
> Line 1
>
> Line 2
> -------
>
> None of these following XSL FOs produce the desired result.  Am I
> missing something, or is this a limitation of FOP?

Option 1. will definitely not produce the intended effect, but both 2.  
and 3. definitely work in FOP 0.95.

As a small correction: the property "whitespace-treatment" does not  
exist. It should be specified as "white-space-treatment". FOP 0.95  
will exit with a ValidationException (unless you're using relaxed  
validation, which is not recommended)

If you are using 0.20.x and cannot upgrade, the effect of an empty  
line can normally be generated like so:

<fo:block
   space-after.optimum="1.2em"
   space-after.conditionality="retain"
   space-after.precedence="force" />



HTH!

Andreas


This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to which
they are addressed. If you have received this email in error
please notify the system manager. Please note that any views or
opinions presented in this email are solely those of the author
and do not necessarily represent those of the company. Finally,
the recipient should check this email and any attachments for
the presence of viruses. The company accepts no liability for
any damage caused by any virus transmitted by this email.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to