> On Feb 26, 2008, at 16:42, Johannes Caspary wrote:
>
> Hi
>
>> My problem concerns the functionality to retain formatting
>> information such as line feeds or white spaces that have been
>> stored like that in the XML document. There is the attribute white-
>> space-collapse of fo:block, which, when set false, seems to keep
>> white spaces and line feeds from the XML document. That's already
>> pretty much what I wanted. Then I tried to combine this
>> configuration with text-align="justify". Now it seems that when a
>> line ends, the spaces in between the words get stretched out (see
>> picture), which is not intended.
>>
>> Do you know any solution to this problem? Below, there is the code
>> snippet which is responsible for the disfunctional part that's in
>> the red frame in the picture.
>>
>> <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format"; keep-
>> together.within-page="always"  font-family="Verdana" font-
>> size="7pt" text-align="justify"      space-after="12pt" white-space-
>> collapse="false" linefeed-treatment="preserve" white-space-
>> treatment="preserve" wrap-option="wrap">
>>    <fo:block>Kommentar:</fo:block>
>>        <xsl:apply-templates select="textToPrintOut" />
>> </fo:block>
>
> Why did you add the text-align property? If it is set to justify, all
> spaces are stretched to align the text as specified (= justified).
> If you remove that, then the effect will be more what you seek, IIC.
>
> Cheers
>
> Andreas
>

Hi Andreas,
thanks for your reply. The problem is that I would like to combine keeping
line feeds in my text and justified text alignment. With this older FOP
version, there doesn't seem to be any support for the attribute
"linefeed-treatment", thus I used white-space-collapse which worked with
normal alignment. With FOP 0.94, everything works fine.

Maybe with white-space-collpase = "false" each linefeed is interpreted as
a linefeed _and_ a white space. And then unfortunately the justified text
alignment extends each line to the end, although it may only contain two
or three words.

Regards,
Johannes

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

Reply via email to