Bug 19341 - leader doesn't work since 0.20.5.rc2
Summary: leader doesn't work since 0.20.5.rc2
Status: CLOSED WORKSFORME
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: pdf (show other bugs)
Version: 0.20.5
Hardware: Other All
: P3 normal
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-26 01:37 UTC by André Malo
Modified: 2012-04-01 14:39 UTC (History)
0 users



Attachments
fo snippet that doesn't work as expected (2.10 KB, text/plain)
2003-04-26 01:39 UTC, André Malo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description André Malo 2003-04-26 01:37:30 UTC
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.
Comment 1 André Malo 2003-04-26 01:39:08 UTC
Created attachment 6022 [details]
fo snippet that doesn't work as expected
Comment 2 J.Pietschmann 2003-04-27 20:12:07 UTC
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.
Comment 3 André Malo 2003-04-27 20:37:42 UTC
Good enough for me, thanks!

Perhaps one should drop a more specific note into the changelog or release notes.
Comment 4 Ma 2005-08-09 11:43:57 UTC
(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?
Comment 5 J.Pietschmann 2005-08-10 08:58:18 UTC
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.
Comment 6 Glenn Adams 2012-04-01 14:39:28 UTC
transition (old) verified bugs to closed