You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Ferran Falco <in...@barberan.com> on 2004/09/20 09:47:41 UTC

Justifying preformatted text

Hi,

I have a problem when I try to justify preformatted text.
The last line of every paragraph fill whole line although it contains 
only two words.

I have tried  the attribute "text-align-last=start" but it seems that don't 
change anything.

An example of code:

<fo:page-sequence master-reference="Maquinas">
<fo:flow flow-name="xsl-region-body">
<xsl:for-each select="/fm:FMPDSORESULT/fm:ROW">
		
<fo:block white-space-collapse="false" linefeed-
treatment="preserve" text-align="justify" text-
align-last="start" >
<xsl:value-of 						
select="fm:HOJ_DescripcionCompleta"/> <!-- 
Preformatted text comes from a database -->
</fo:block>
</xsl:for-each>
</fo:flow>
</fo:page-sequence>


Any idea? This is the last problem in a project that I spent a lot of 
time but I can't find any solution.

Thank you very much!




-----------------------------------------------------------------------
Este mensaje contiene informaci�n propietaria de la cual parte o toda
puede ser confidencial o estar protegida legalmente.
Est� exclusivamente dirigido al usuario de destino.
-----------------------------------------------------------------------
This e-mail contains propietary information, some or all may be legally
privileged. It is only for the intended recipient.
-----------------------------------------------------------------------

     BARBERAN S.A
     MACHINERY FOR FINISHING SYSTEMS
     Poligono Industrial Cami Ral. C/Galileo 3-9
     08860 CASTELLDEFELS (BARCELONA). SPAIN
     Tel: (34)936350810
     Fax: (34)936361555
     e-mail: barberan@barberan.com
     www.barberan.com