Keeping whites space in blocks

2002-05-23 Thread Kevin Pearcey
I'm converting documents from XML and some have large gaps of white space
which disappears when rendered by fop.  I have a block such as

fo:block Some Text/fo:block

But the resulting PDF has the text hard to the left margin as though the
input was simply:

fo:blockSome Text/fo:block

I assume something is allowing pre-ceding white space to be removed, but I
can see what.

Cheers

Kevin Pearcey






Re: Keeping whites space in blocks

2002-05-23 Thread Keiron Liddle
Hi Kevin,

By default whitespace is collapsed. As often there is a lot of excess
whitespace in xml.
if you use this property:
white-space-collapse=false

it will not collapse the white space.

On Thu, 2002-05-23 at 12:31, Kevin Pearcey wrote:
 I'm converting documents from XML and some have large gaps of white space
 which disappears when rendered by fop.  I have a block such as
 
 fo:block Some Text/fo:block
 
 But the resulting PDF has the text hard to the left margin as though the
 input was simply:
 
 fo:blockSome Text/fo:block
 
 I assume something is allowing pre-ceding white space to be removed, but I
 can see what.
 
 Cheers
 
 Kevin Pearcey



RE: Keeping whites space in blocks

2002-05-23 Thread Scott Moore


 -Original Message-
 From: Keiron Liddle [mailto:[EMAIL PROTECTED]
 Sent: Thursday, May 23, 2002 6:38 AM
 To: [EMAIL PROTECTED]
 Subject: Re: Keeping whites space in blocks
 
 By default whitespace is collapsed. As often there is a lot of excess
 whitespace in xml.
 if you use this property:
 white-space-collapse=false
 
 it will not collapse the white space.

I noticed some different behavior from RenderX's XEP.  While FOP will keep
all spaces, when words wrap to the next line, the words are left justified.
However, XEP will wrap the word to the next line and indent it one space.
It looks horrible.  Which product is correct in their interpretation of the
spec?


FOP:

This is a sample  sentence
that keeps  all  spaces.


XEP:

This is a sample  sentence
 that keeps  all  spaces.