I'm using FOP 2.3 with the DITA Open Toolkit. The <title> tags in DITA topics are used in the table of contents in a PDF. Each table of contents line is justified like this in the PDF:

(left margin)Intro to XYZ........................................................14(right margin) (left margin)Setting Up XYZ...................................................18(right margin)

Most lines line up neatly on the right margin, but a few do not go to the margin. The cause of a line that does not go all the way to the right margin is a <title> tag with white space in it like this:

<title>
  Do This First
</title>

This white space gets copied over to the XSL-FO produced by the DITA OT:

height="150%"><fo:inline end-indent="14pt">
        Do This First
    </fo:inline><fo:inline color="black" keep-together.within-line="always" start-indent="-14pt"><fo:leader
color="black" leader-pattern="dots"/><fo:page-number-citation...

And FOP renders this in the PDF like this, where the line does not go all the way to the right margin:

(left margin)Do This First....................................................10 (right margin) (left margin)Intro to XYZ........................................................14(right margin) (left margin)Setting Up XYZ...................................................18(right margin)

When I remove the whitespace in the XSL-FO, the line renders correctly, all the way to the right margin. Both Antenna House and XEP render the line correctly, ignoring the extraneous whitespace. This seems like a FOP bug, is there a fix for this? Other than removing the whitespace?

Thanks,
Mark


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org

Reply via email to