Remove leaders from TOC entries

Remove the leader between the Table of Contents entry text and the page number.

You don’t want any leader at all between the TOC entry title and the page number. That’s a simple change.

  1. In DITA-OT/plugins/org.dita.pdf2/xsl/fo/toc.xsl, locate the following line:
    <fo:leader xsl:use-attribute-sets="__toc__leader"/>

    There are five of these lines: one for main entries, one for glossary entries, one for entries in the list of tables, one for entries for the list of figures, and one for entries for the list of tables. Right now, you just want to change the first occurrence—the one for main entries.

  2. Copy the entire template that contains this line to your copy of toc.xsl.

    The template begins with these ...