You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Phil Endecott <sp...@ChezPhil.org> on 2001/11/09 16:00:16 UTC
leaders and start-indent
Dear FOP people,
I'm getting strange behaviour from fo:leader when I set start-indent
on the block that contains it. I have this:
<fo:block>
Hello World
<fo:leader leader-pattern="dots"/>
</fo:block>
<fo:block start-indent="2em">
Hello World
<fo:leader leader-pattern="dots"/>
</fo:block>
and I expect to get this [fixed-width font required to view sensibly]:
Hello World..............................................
Hello World...........................................
but what I actually get is this:
Hello World..............................................
Hello World........................................
i.e. it looks as if the start-indent is being applied at the start and
at the end of the line. Strange!
This is with FOP 0.20.2-RC.
Any ideas anyone?
What I'm trying to do is to build a table of contents with subsections
nested, like this [fixed width font required again]:
1. Foo...........................................1
1.1 Blah.......................................2
1.2 Blob.......................................3
1.2.1 Aarggh.................................4
1.3 Ugh........................................5
2. Foo...........................................6
So if anyone has some code that does that without the right margin
going all jagged I'd love to see it!
Thanks,
--Phil.
(Here is a complete example, if you want to try it out:)
<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master margin-right="25mm" margin-left="25mm"
margin-bottom="20mm" margin-top="15mm"
page-height="297mm" page-width="210mm"
master-name="a4">
<fo:region-before extent="10mm"/>
<fo:region-after extent="10mm"/>
<fo:region-body margin-bottom="15mm" margin-top="15mm"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-name="a4">
<fo:flow flow-name="xsl-region-body">
<fo:block>
Hello World
<fo:leader leader-pattern="dots"/>
</fo:block>
<fo:block start-indent="2em">
Hello World
<fo:leader leader-pattern="dots"/>
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org