[xep-support] XSLFO: trouble with text-align-last="justify" and linefeed-treatment="preserve"

Michael Sulyaev msulyaev at renderx.com
Mon Jan 21 03:45:01 PST 2008


Kirch Fritz wrote:
> why are *ALL* lines of  a <fo:block text-align-last=”justify” 
> linefeed-treatment=”preserve”> justified?
> 
> Is this a misunderstanding of the term “text-align-last” by myself or is 
> this a bug of the Renderer?

Hello Fritz,

The Recommendation (http://www.w3.org/TR/xsl11/#text-align-last) says 
that text-align-last "Specifies the alignment of the last line-area 
child of the last block-area generated and returned by the formatting 
object, and to any line-area generated by the formatting object whose 
following sibling is a block-area that is not a line-area, and any lines 
in the block ending in U+000A.", and here we have the last case, for the 
"refinement process" preserves linefeed characters because of 
linefeed-treatment="preserve", and it happens before applying alignment.

-- 
Best regards,
Michael Sulyaev
http://www.renderx.net
http://www.renderx.com
mailto:support at renderx.com
-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo at renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/terms-of-service.html



More information about the Xep-support mailing list