question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Inconsistent headers with named pages and running headers

See original GitHub issue

Salutations. I was finally trying to implement #57 in my system and I encountered a strange difficult. I have just as simple set of div.chapter objects with a running header that has the author and title except for the first page of each chapter, which doesn’t. When I run this against the latest (6971959), the headers inconsistently disappear on the page.

I have attached a sample which demonstrates this. This is from Frankenstein. The letters all have the headers I expect, but the first page after chapter doesn’t, however, I don’t have anything different with those so I’m not sure why it disappeared. Likewise, pages 23-34 (the third and fourth page of chapter 2) are doing this.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
liZecommented, Jan 21, 2018

Can’t reproduce this bug with weasyprint 0.42

I can, what a strange issue.

0reactions
dmoonfirecommented, Mar 17, 2018

I just had a chance to integrate the code into my mfgames-writing-js and it worked beautifully (though there were some differences in how I implemented the page breaks).

Between this and the inability to reset page numbers, I ended up having to generate 3 PDFs for every chapter in my novels with the previous implementation.

  • One using the previous page style to get the right number of pages.
  • One to render the first page of a chapter.
  • One to render the rest of the chapter.

Then I combined everything the two previous ones together. page1 + pageN. The combine those to the previous chapters to build up the document part-by-part. (So 3N PDFS where N is the number of chapters.)

With the changes for this, I got it down to 2. Not 2N, 2. That also made the builds 6x faster for my latest published novel.

Thank you, this has been very helpful and I appreciate all the help you put into it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fix inconsistent headers in Microsoft Word
I have a 12 chapter book with chapter headings that alternate from side to side based on the gutter and do not appear...
Read more >
Running Head Format for APA Style Papers
A running head is a short title that appears at the top of every page of your paper in the page header. The...
Read more >
HttpContent Headers inconsistent enumeration - Stack Overflow
Your example is incomplete. I was only able to recreate your issue when I accessed the ContentLength property before calling the extension ...
Read more >
Inconsistent treatment of H1 headers in LaTeX build · Issue #810
Ensure that project has many different H1-type headers in it (using Markdown's # in .ipynb cells), spread over several files. Run jupyter-book ...
Read more >
A Formal Analysis of Inconsistent Click-Jacking Protection on ...
derspecified XFO header. In this paper, we formally study the problem of inconsistencies in framing control policies.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found