Not clear without screenshot at least.
This is what you get from FOP:
From: Geert Bormans geert(_at_)gbormans(_dot_)telenet(_dot_)be
<xsl-list-service(_at_)lists(_dot_)mulberrytech(_dot_)com>
Sent: Monday, August 16, 2021 2:55 PM
To: xsl-list <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
Subject: [xsl] [XSL-FO] right alignment after leader dots (multiple lines)
All,
In a table cell, I have (potentially) multiple lines of text, left aligned
For the last line, I want to align a single word ( maximum 4 digits actually)
to the right of the cell and fill the space between this word and the rest of
the text with leader dots
I also want this last line to expand outside the box given to the other lines
The visual effect is that of a second table cell containing the digits (pushed
to the bottom)
and the first cell having leader dots on the last line, reaching out to the
right border of the table cell
(but I figured out that I can not make that happen in FO)
The following works perfectly using Antenna House
<fo:table-cell padding-bottom="5mm"
keep-together.within-page="always"
column-number="2">
<fo:block keep-together.within-page="always"
text-align="left"
end-indent="9mm"
last-line-end-indent="-9mm"
text-align-last="justify">
<fo:inline>Lorem ipsum dolor sit amet,
consectetur adipiscing elit. Suspendisse sodales tincidunt sapien. Orci varius
natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.
Phasellus quis auctor diam.</fo:inline><fo:inline
keep-together.within-line="always"><fo:leader
leader-length.maximum="1mm"/><fo:leader
leader-pattern="dots"
leader-length.optimum="100%"
/></fo:inline><fo:inline
keep-together.within-line="always"
font-weight="bold">
2006</fo:inline></fo:block>
</fo:table-cell>
The 2006 is nicely right aligned to the cell boundary
In FOP however the digits are not right aligned
The text-align-last="justify" is not using the full width of the cell
Is Antenna House doing a much better job than it should, or is FOP having a bug?
And are there suggestions or workarounds to make this work in FOP?
If the question is not clear enough, I can attach screenshots and a full
working FO (at least in AH formatter) ... but wanted to start without
attachments to begin with
Thanks for any help anyone can offer
Met vriendelijke groeten,
Best regards,
Geert Bormans
XSL-List info and archive <http://www.mulberrytech.com/xsl/xsl-list>
EasyUnsubscribe <http://lists.mulberrytech.com/unsub/xsl-list/3183067> (by
email <> )
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--
