asciidoctor / asciidoctor-pdf

:page_with_curl: Asciidoctor PDF: A native PDF converter for AsciiDoc based on Asciidoctor and Prawn, written entirely in Ruby.
https://docs.asciidoctor.org/pdf-converter/latest/
MIT License
1.14k stars 500 forks source link

Dots missing in TOC when toclevels is set on section #2441

Closed mojavelinux closed 1 year ago

mojavelinux commented 1 year ago

If the toclevels attribute is set on a section to increase the TOC depth for that section, the dots are missing. This happens because the default dot leader levels (when not set in the theme) are computed based on the global toclevels attribute. When the depth is increased, it exceeds this threshold and the dots are not shown. However, they should be.