Next in thread → Next in month →

RE: [docbook-apps] Solution: Page numbers not aligned in TOC

From
Jan Tosovsky <>
Date
2015-04-09T19:42:15+00:00
ID
016401d072fd$46bf0300$d43d0900$@
Thread
RE: [docbook-apps] Solution: Page numbers not aligned in TOC
On 2015-04-09 Martin Doucha wrote:
> On 2015-04-09 Kallauch Benjamin wrote:
> >
> > I noticed a fuzzy looking TOC some time ago with my FO-results
> > from FOP 1.1 and DocBook-XSL 1.78.1. The page numbers seemed  to
> > be "misaligned" slightly. They ought to be aligned on the right
> > side, but they were not.
> >
> > The reason for that lies in the "toc.line" named template in
> > fo/autotoc.xsl. Between the dotted line there is a leading and
> > trailing space: <xsl:text> </xsl:text>. At least this causes FOP
> > (maybe in combination with only some font types and sizes) to
> > render misaligned page numbers.

A good catch! Thanks for sharing. But keep in mind not all fonts have
&#x2004 code point in their character set.
 
> It's a bug in FOP. I've reported it some time ago and made a patch for
> SVN version of FOP. You can find the specific conditions which trigger
> the bug in my bugreport:
> https://issues.apache.org/jira/browse/FOP-2438
>

See also https://issues.apache.org/jira/browse/FOP-1444

Jan
Next in thread → Next in month →