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

does not print table header at all, cuts off body #522

Closed
andreixk opened this issue Oct 12, 2017 · 1 comment
Closed

does not print table header at all, cuts off body #522

andreixk opened this issue Oct 12, 2017 · 1 comment

Comments

@andreixk
Copy link

andreixk commented Oct 12, 2017

If you try to print this html with simple CTRL+P on chrome it prints it properly (header on every page, 3 pages total).
However WeasyPrint (0.41) does not print header at all, only prints the body on 1 page, and cuts off the rest:

<table>
<thead>
  <tr>
    <td> 
    	headrerrrrrrrrr <br> headrerrrrrrrrr <br> headrerrrrrrrrr <br> headrerrrrrrrrr <br> headrerrrrrrrrr <br>
    	headrerrrrrrrrr <br> headrerrrrrrrrr <br> headrerrrrrrrrr <br> headrerrrrrrrrr <br> headrerrrrrrrrr <br>
    </td>
  </tr>
</thead>
<tbody>
  <tr>
    <td>
    	body <br> body <br> body <br> body <br> body <br> body <br> body <br> body <br> body <br> body <br> body <br>
    	body <br> body <br> body <br> body <br> body <br> body <br> body <br> body <br> body <br> body <br> body <br>
    	body <br> body <br> body <br> body <br> body <br> body <br> body <br> body <br> body <br> body <br> body <br>
    	body <br> body <br> body <br> body <br> body <br> body <br> body <br> body <br> body <br> body <br> body <br>
    	body <br> body <br> body <br> body <br> body <br> body <br> body <br> body <br> body <br> body <br> body <br>
    	body <br> body <br> body <br> body <br> body <br> body <br> body <br> body <br> body <br> body <br> body <br>
    	body <br> body <br> body <br> body <br> body <br> body <br> body <br> body <br> body <br> body <br> body <br>
    	body <br> body <br> body <br> body <br> body <br> body <br> body <br> body <br> body <br> body <br> body <br>
    	Last Entry
    </td>
  </tr>
</tbody>
</table>
@liZe
Copy link
Member

liZe commented Oct 12, 2017

Thank you for this bug report.

It's a duplicate of #36. WeasyPrint desesperately tries to display the whole table and even removes the header if the body is too large, that's why it's not displayed. This really naive and buggy behavior will be removed as soon as (4-year-old) #36 is closed.

@liZe liZe closed this as completed Oct 12, 2017
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