Is there a way to effectively style the TOC for long chapter names so the page number doesn't end up in the second line.
The problem is that I'm using long chapter names which run to the next line and it starts to look really ugly.
Is there a way that I can place a div where the page number is positioned without the leader ?
This is what I'm using right now
Attached screenshot
The problem is that I'm using long chapter names which run to the next line and it starts to look really ugly.
Is there a way that I can place a div where the page number is positioned without the leader ?
This is what I'm using right now
ul.toc a::after {
content: leader(' ') target-counter(attr(href), page);
}
Attached screenshot