ggrossetie / asciidoctor-web-pdf

Convert AsciiDoc documents to PDF using web technologies
https://asciidoctor.org
MIT License
455 stars 92 forks source link

TOC seems not well split #657

Open benoitrolland opened 2 years ago

benoitrolland commented 2 years ago

At end of TOC, in my case two <li class="toc-entry"> nodes, are not showing.

asciidoctor-web-pdf --version Asciidoctor Web PDF 1.0.0-alpha.14 using Asciidoctor.js 2.2.6 (Asciidoctor 2.0.17) [https://asciidoctor.org] Runtime Environment (node v16.14.0 on win32) CLI version 3.5.0

ggrossetie commented 2 years ago

Could you please post a sample document that reproduces this issue and/or a screenshot?

benoitrolland commented 2 years ago

Sorry but I couldn't manage to reduce the problem to a test case. I guess that css must be part of the problem. I could solve my "complex" case by not including in the TOC the single root level that I had (TOME I).

Just to show that I am not kidding ;-)

tocNotWellSplit

The two element-zones are overlaping, one line is lost here and the page is not split:

tocNotWellSplit2

adding visibility: hidden; on the pagejs_margin-bottom <div> or deleting it using chrome's dev-tools, doesn't show the missing <li>