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

How to render cells across a page break instead of splitting the rows between pages #109

Open
smileatom opened this issue Dec 6, 2020 · 1 comment

Comments

@smileatom
Copy link

I have a table with a largish row and on page boundaries it is separated by alot of space from the row above, because the table is splitting on the cell boundaries instead of splitting the actual cell that would draw into the next page. This is resulting in alot of empty space on pages because of this rows typical height.

Anyway to just draw cells into the next page instead of breaking on the row boundary?

@smileatom smileatom changed the title How to render cells across a page break instead of splitting the cells between pages How to render cells across a page break instead of splitting the rows between pages Dec 6, 2020
@vandeseer
Copy link
Owner

Hi @smileatom,

even though I understand your issue I do not have any easier solution than splitting the large cells yourself before building the table to draw. You could – for instance – search for newlines and create a table cell for each part.

The easytable library itself cannot easily handle that for you (pun intended). It's a table drawing library not a layout library. There are quite some difficulties, e.g. see this discussion: #107

So I am open for pull requests but I am not really willing to do this in my free time (nor am I mentally capable of doing it 😉).

Best,
Stefan

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