On Sep 13, 2007, at 15:20, Puppala, Kumar (LNG-CON) wrote:

Hi Vincent,
Thanks for your suggestion. Removing white-space-treatment property got me a correct result.

The result *with* white-space preservation is also correct (don't confuse 'unexpected' with 'incorrect').

Explanation:
Note that the combination of

<fo:block white-space-collapse="false" white-space- treatment="preserve">...</fo:block>

will preserve *all* spaces. On top of that, if linefeed-treatment is not explicitly specified, then it defaults to "treat-as-space".

<fo:block white-space-collapse="false" white-space-treatment="preserve">
a line ending with a space
 a line beginning with a space
</fo:block>

will lead to *three* spaces, as in:

a line ending with a space   a line beginning with a space

If the formatter would generate an implicit line-break after the three spaces, they will NOT be collapsed. To achieve that result, you want the default/initial value of white-space-treatment="ignore-if- surrounding-linefeed".

It's not a bug, but a feature. ;-)



Cheers

Andreas




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to