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

rows lost after the pdf is generated #23

Open
sushuai opened this issue Sep 28, 2020 · 2 comments
Open

rows lost after the pdf is generated #23

sushuai opened this issue Sep 28, 2020 · 2 comments
Labels
bug Something isn't working

Comments

@sushuai
Copy link

sushuai commented Sep 28, 2020

Hello, if the table row data is too much, some rows will be lost after the PDF is generated

@orzih orzih added the bug Something isn't working label Oct 1, 2020
@orzih
Copy link
Owner

orzih commented Oct 1, 2020

Thank you for your report.

I think this problem is due to WeasyPrint.

Kozea/WeasyPrint#36
zhaoterryy/mkdocs-pdf-export-plugin#50

Try adding the following css:

@media print {
  table,
  .md-typeset table:not([class]) {
    width: 100%;
    overflow-wrap: break-word;
    table-layout: fixed
  }

  th, td {
    word-break: break-all;
  }
}

@makayabou
Copy link

it didn't work for me with above css but rather but the one proposed in mkdocs-pdf-export-plugin issue :

@media print {
  .md-typeset table:not([class]) {
      display: block;
      border: none;
  }  
}

but the problem in WeasyPrint remains: long table is forced to start on a new page, often letting a title alone..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants