I can't think of an FO construct that would accomplish this. The only work-around would be a table but that leaves you with a possible compromise concerning the leader which cannot come as close to the page number as you might wish.
<fo:table width="100%" table-layout="fixed"> <fo:table-column column-width="95%"/> <fo:table-column column-width="5%"/> <fo:table-body> <fo:table-row> <fo:table-cell> <fo:block text-align-last="justify">1 Demo Demo Demo Demo Demo Demo Demo Demo Demo Demo Demo Demo Demo Demo Demo Demo Demo Demo <fo:leader leader-pattern="rule" rule-thickness="0.5pt"/> </fo:block> </fo:table-cell> <fo:table-cell display-align="after"> <fo:block text-align="end">555</fo:block> </fo:table-cell> </fo:table-row> </fo:table-body> </fo:table> I guess, we'd need a "text-indent-last" or something. Jeremias Maerki On 26.11.2007 12:46:43 Dirk Bromberg wrote: > Hi Users, > > i've a small problem with the usage of a leader. > > When i will render a TOC, i use this code: > > <fo:block text-align-last="justify">1 Demo Demo Demo Demo Demo Demo Demo > Demo Demo Demo Demo Demo Demo Demo Demo Demo Demo Demo <fo:leader > leader-pattern="rule" rule-thickness="0.5pt"/> 555 > </fo:block> > > The problem: When the text "Demo" is too long for the page then it > breaks above the pagenumber and starts in a new line under the start of > the first line. Is there way to create a style like: > > ----------------------------------- > 1 Demo Demo Demo BREAK > Demo Demo ________ 555 > -------------------------------- > > > Thanks. > > Dirk --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]