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

Table cells are not split between multiple pages #96

Closed
federicodalcastello opened this issue May 31, 2013 · 7 comments
Closed

Table cells are not split between multiple pages #96

federicodalcastello opened this issue May 31, 2013 · 7 comments
Labels
bug Existing features not working as expected

Comments

@federicodalcastello
Copy link

Hello,

I am evaluating WeasyPrint for integration and I made tests converting specific pages. Unfortunately, I found an unexpected behaviour by converting the following page (italian holidays portal):

http://www.arca-enel.it/go/55155?wp_fn=dettaglio&codice=23882&codCat=2013E

In fact, all the content is rendered in page 2. Page 1 and 3 are left blank. Main browsers' print preview correctly separates the text among pages.

Is this a bug or is there something wrong in the page source?

Thankyou

@liZe
Copy link
Member

liZe commented May 31, 2013

The content is in a table, and WeasyPrint does not break the td tags between the pages, that's why your content is on one page.

@liZe liZe closed this as completed May 31, 2013
@liZe liZe reopened this May 31, 2013
@liZe
Copy link
Member

liZe commented May 31, 2013

I reopened the bug and changed its title, as this bug has not been reported yet (even if we secretly knew it :p).

@federicodalcastello
Copy link
Author

Thank you for the fast reply, I'll keep an eye on future releases for the fix.

@federicodalcastello
Copy link
Author

Another question: aside from table cells, are divs split between multiple pages?

@liZe
Copy link
Member

liZe commented Jun 2, 2013

Of course, most of them are. You can have page-break "problems" with tables, floating boxes and atomic content (images for example).

@sirex
Copy link

sirex commented Nov 14, 2013

Not sure if this is exactly related to this bug, but I'm also having issues with table cell splitting. Here is example html file:

https://gist.github.com/sirex/7473580

Now WeasyPrint splits long cell, but leaves no border in place, where cell is split.

I'm planning to fix that, by reducing number of row span for long cells if they don't fit in page, this way, one cell will fit in one page, and remaining part will be show on next page as separate cell.

In my application it is also required, that content of long cell will be repeated on next page. How would you suggest to implement this content repeating, via css or pragmatically using python callback functions or some thing like that?

@liZe
Copy link
Member

liZe commented Mar 25, 2017

Now duplicates #36.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Existing features not working as expected
Projects
None yet
Development

No branches or pull requests

3 participants