View Single Post
Old 11-18-2014, 11:19 AM   #1
MrBen
Random Member
MrBen began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Nov 2014
Location: London
Device: Nook
Exclamation html to pdf, TOC Page# trouble from CSS...

We are using //h:h1 etc for level 1 TOC.

When we have a style that includes a negative left or right margin on the h1,
e.g.
margin-left: -1em;

then the page numbering on the TOC goes wrong.

The obvious workaround is to not use negative values for margin-left and margin-right, especially with TOC-level elements.

I have included a zip file that demonstrates the behaviour.
Line 270 of the style.css file switches the behaviour on and off.

We would love to have the ability to resolve this, but we know no python - we are merely humble users (and fans) of Calibre.
Attached Files
File Type: zip example.zip (87.7 KB, 306 views)
MrBen is offline   Reply With Quote