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
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]