I've attached an image of the problem (without_display_flex.PNG): long text goes under the number prefix. To tackle this in HTML, I decided to use display: flex (or later table-cell).
However, if I use flex or table-cell, the table of contents is not rendered correctly. No dotting appears (with_display_flex.PNG). The "content: leader(".")" css stops working.
Also attached (with_display_flex_in_HTML.PNG) that shows what I am trying to accomplish.
Is there another way to do this? Or is it a bug?
It would help my cause, if Prince allowed "list-style-type: 'string'" though
However, if I use flex or table-cell, the table of contents is not rendered correctly. No dotting appears (with_display_flex.PNG). The "content: leader(".")" css stops working.
Also attached (with_display_flex_in_HTML.PNG) that shows what I am trying to accomplish.
Is there another way to do this? Or is it a bug?
<div class="toc-section">
<a href="#toc__sec_9.6" style="display: flex;">
<span class="toc-left">9.6</span>
<span class="toc-right">Calculation of structure-borne sound level Lsn
and normalisation with respect to the acoustic properties of the wall</span>
</a>
</div>
a[href]::after { content: leader(".") target-counter(attr(href), page); }
.toc-left { width: 30pt; display: inline-flex; }
.toc-right { padding-left: 5pt; }
It would help my cause, if Prince allowed "list-style-type: 'string'" though
Edited by rainhallikas