Skip to content
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

named pages force page break #1944

Closed
pmjdebruijn opened this issue Aug 25, 2023 · 4 comments
Closed

named pages force page break #1944

pmjdebruijn opened this issue Aug 25, 2023 · 4 comments

Comments

@pmjdebruijn
Copy link
Contributor

When using named pages a page break seems to be forced, even when it's not appropriate.

For example when the first div in the code associated with a named page, you end up with an empty first page, and a second named page. Where you would expect to get a named first page.

See example attached in #1943 for a concrete demonstration.

@liZe liZe added bug Existing features not working as expected and removed bug Existing features not working as expected labels Aug 25, 2023
@liZe
Copy link
Member

liZe commented Aug 25, 2023

That’s a bug … in your HTML file 😄: the doctype should be <!DOCTYPE html>.

@liZe liZe closed this as completed Aug 25, 2023
@pmjdebruijn
Copy link
Contributor Author

Oh, I'm a bit rusty on HTML/CSS, however when I change that, I still get that first empty page...

@liZe
Copy link
Member

liZe commented Aug 26, 2023

There are 2 problems with your doctype: the missing exclamation point (that’s important for this use case) and html5 instead of html. When I use your original file I get the empty page (because the HTML parser thinks that it’s a normal tag), but when I change this single line it works.

background-image-bleed-bug.zip

@pmjdebruijn
Copy link
Contributor Author

Doh! Apologies... Indeed NOTABUG...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants