Weasyprint: Repeating <thead> and <tfoot> on every page with border-collapse: collapse

Created on 24 Apr 2013  路  4Comments  路  Source: Kozea/WeasyPrint

Table border collapsing is annoying to do when header and footer row groups are repeated on every page. We should still do it. Later.

https://github.com/Kozea/WeasyPrint/blob/v0.19/weasyprint/formatting_structure/build.py#L507

    # XXX For now table headers and footers in the collapsing border model
    # are not repeated on every page.
feature

Most helpful comment

@mzu how did you show/ repeat headers and footers on each page??

All 4 comments

Hi. Is there a way to turn off repeating <thead> and <tfoot> on every page?

@mzu Repeating on every page is the only real difference <thead> and <tfoot> have with <tbody>, so you could just use <tbody>. Or, if you鈥檇 rather not change the markup for some reason, use the following CSS:

thead, tfoot { display: table-row-group }

@SimonSapin Great, thanks.

@mzu how did you show/ repeat headers and footers on each page??

Was this page helpful?
0 / 5 - 0 ratings

Related issues

amarnav picture amarnav  路  5Comments

schettino72 picture schettino72  路  5Comments

antuaneacion picture antuaneacion  路  3Comments

elcolie picture elcolie  路  4Comments

muzzamilkhan picture muzzamilkhan  路  3Comments