-
-
Notifications
You must be signed in to change notification settings - Fork 710
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
Unwanted margin in multi-page table #583
Comments
Can reproduce the error and it's - - - STRANGE! Stupid workaround at the moment: /* report.html, line 12433 ff */
@page {
size: A4;
margin: 3cm 2cm;
/* margin-top between 2.9 and 3.1 produces the strange error */
margin-top: 2.8cm;
@bottom-right {
font-family: 'Montserrat';
content: "Page " counter(page) " of " counter(pages);
}
} As I said: strange magic numbers. I keep at it and will report my findings. |
What a dirty bug! @morloy It's also the first real-life problem I get with flexbox, as I had to fix an endless loop before fixing this bug. I'd be really interested by some tests with your documents (as bootstrap includes some flexbox layout). If you can test the current
@Tontyna Thanks for the hint! |
@liZe Cool, current master works with the sample document. Thanks a lot! |
Yes, now that the bug is fixed 😉. It would be a good idea to test other (if any) documents you're generating too, as flexbox support may have broken /changed them.
I'll release another 0.42.x version before the end of the month. |
We discovered a very strange margin issue in a table that spans over two pages.

As you can see in the image, one single number has a margin to the right. The HTML code for all rows is exactly the same. So I'm a bit confused about how to trace this bug. Maybe some of the experts can give a hint?
Here's the source HTML and the produced PDF from WeasyPrint.
report.zip
The text was updated successfully, but these errors were encountered: