WeasyPrint icon indicating copy to clipboard operation
WeasyPrint copied to clipboard

Handle break-* in columns

Open pmjdebruijn opened this issue 1 year ago • 3 comments

Example: page-break-column-bug.zip

I'm wondering whether this is a bug that is rooted in intentional behavior for column-less pages.

When break-before: page is applied to a page without columns, you wouldn't want it to trigger a new page, when you're already on top of a clean new page (otherwise, it would effectively result in an empty page being generated).

When break-page: page is applied to a page with columns, you would want to get a clean new page, even if it's at the top of a brand new column.

pmjdebruijn avatar Sep 13 '23 16:09 pmjdebruijn

I'm wondering whether this is a bug that is rooted in intentional behavior for column-less pages.

It’s a bug! break-before and break-after is broken in columns.

liZe avatar Sep 15 '23 18:09 liZe

Thanks for the confirmation.

I've also noticed where it seems like a page break actually generates a column break instead, so that might be related...

pmjdebruijn avatar Sep 16 '23 12:09 pmjdebruijn

I've also noticed where it seems like a page break actually generates a column break instead, so that might be related...

Yes, it’s totally broken.

(Also related to #1856.)

liZe avatar Sep 19 '23 20:09 liZe