-
-
Notifications
You must be signed in to change notification settings - Fork 711
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bookmarks repeat on every page #1145
Comments
Don't think you're doing anything wrong. The level-1-section, wrapping everything, is present on every page that WeasyPrint generates -- try to give it a border or background color and you should see that decoration on each page. Like those 'decorative' stylings, the Looks like WeasyPrint should stop propagating the bookmarks when spreading a wrapping box across pages. |
Thank you for your response, @Tontyna. Is there a workaround i can use? |
Maybe if I put the |
Nah, no chance. Though the spec says that the Only workaround at the moment is inserting (empty) dummy elements. |
Thanks.
I thought this was what Any sense if this may change in WeasyPrint in the foreseeable future? |
BTW: Not only multi-page-boxes generate multiple bookmarks. Multi-Line Inline-Boxes do it, too: <h1 style="display:inline; white-space:pre">
A bookmark
for every
line
</h1> creates 4 bookmarks in the PDF outline |
How about that! I guess no one would ever use more than one line in an I can test this commit with my XML this evening when I get home. |
I'm formatting an XML file. I want to generate an index, but for some reason I'm getting an entry for every section on each page. What am I doing wrong? Using Weasyprint 51 and Python 3.7.5 on Linux.
CSS snippet:
The text was updated successfully, but these errors were encountered: