I have a real simple TOC with 2 columns (left text + dot-leader; right the page number). In rc2 and current CVS (just tested) it doesn't work; rc1 did. The leader will display some dots (I'd guess default value of 12pt width) and instead of filling the rest of the left table column.
Created attachment 6022 [details] fo snippet that doesn't work as expected
Leaders do work, they just work different than before. The new behaviour is meant to be more intuitive (BTW the spec is so loose that both the old and the new way are conformant to the spec). Use text-align-last="justify" to see the difference.
Good enough for me, thanks! Perhaps one should drop a more specific note into the changelog or release notes.
(In reply to comment #2) > Leaders do work, they just work different than before. The new behaviour is > meant to be more intuitive (BTW the spec is so loose that both the old and > the new way are conformant to the spec). > Use text-align-last="justify" to see the difference. This does not work for me. When I add the text-align-last="justifiy" attribute to the parent fo:block element and start fop, it breaks down with following error message: [ERROR] null My code looks like this: <fo:block font-family="Times" font-size="12pt" text-align-last="justify"> <fo:block font-weight="bold"> Text </fo:block> <fo:leader leader-pattern="rule" rule-thickness="6pt" alignment-adjust="middle" leader-length="100%" space-after="6pt"/> <fo:block> Text </fo:block> <fo:block> Text </fo:block> <fo:block> Text </fo:block> <fo:block space-after="20pt"> Text </fo:block> <fo:block space-after="6pt" font-weight="bold"> Text </fo:block> <fo:leader leader-pattern="rule" leader-length="100%" space-after="6pt"/> <fo:block> Text </fo:block> <fo:block> Text </fo:block> <fo:block> Text </fo:block> <fo:block> Text </fo:block> </fo:block> What do I do wrong? Or is this a bug?
The code snippet works for me and generates the expected leaders. I vaguely remember that 0.20.5rc2 had a significant bug releated to leader generation, please update to the last published release. If you are already using the latest release, I suspect the NPE is generated elsewhere.
transition (old) verified bugs to closed