Bug 9864 - fo:list-item-label at the end of line
Summary: fo:list-item-label at the end of line
Status: CLOSED FIXED
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: pdf (show other bugs)
Version: 0.20.3
Hardware: All All
: P3 normal
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-06-14 11:49 UTC by Sascha Gro
Modified: 2012-04-01 06:36 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sascha Gro 2002-06-14 11:49:53 UTC
Hi!

This bug comes with 0.20.4rc

My list-item-labels will be placed at the end of the line if i set the attribute
text-align="end" at the fo:block element.

The problem comes with the AWTRenderer too.
I had a version, i think 0.20.3 or 0.20.3rc where it works. (only one works)

One example for the bug is one from FOP .../doc/examples/fo/list.fo


example fo:

<fo:list-block provisional-distance-between-starts="1.9cm"
provisional-label-separation="0.4cm">
 <fo:list-item start-indent="0.0cm" space-before="8pt">
  <fo:list-item-label end-indent="label-end()">
   <fo:block font-family="sans-serif" text-align="end" font-size="24pt">
     -
   </fo:block>
  </fo:list-item-label>
  <fo:list-item-body start-indent="body-start()">
   <fo:block font-size="24pt">
     Item
   </fo:block>
  </fo:list-item-body>
 </fo:list-item>
 <fo:list-item start-indent="0.0cm" space-before="8pt">
  <fo:list-item-label end-indent="label-end()">
   <fo:block font-family="sans-serif" text-align="end" font-size="24pt">
    -
   </fo:block>
  </fo:list-item-label>
  <fo:list-item-body start-indent="body-start()">
   <fo:block font-size="24pt">
    Item 2
   </fo:block>
  </fo:list-item-body>
 </fo:list-item>
</fo:list-block>


result:
Item                  -
Item                  -


thanks

Sascha
Comment 1 Sascha Gro 2002-12-12 17:31:03 UTC
Hi!
Comment out 
  line 54 ( labelEnd.computeValue() )
in class
  org.apache.fop.fo.expr.LabelEndFunktion
solve the bug

Happy Christmas
Sascha
Comment 2 Pascal Sancho 2007-10-23 07:28:05 UTC
Bug fixed in latest Trunk (rev 584703), and probably in all FOP 0.9x
Comment 3 Glenn Adams 2012-04-01 06:36:13 UTC
batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed