You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
weak pagebreak after page counter update always adds pagebreak #1346
I think the issue is that updating the counter (or any state for that matter) returns a piece of content - this is so the compiler is able to order the various updates with respect to layout order. This piece of content is typically not visible, but results in corner cases like this.
Because that content is inserted, pagebreak no longer believes the current page is entirely blank (although it appears to be), and thus weakness does not apply.
I agree that this would be useful to support, but I'm not sure how complex it would be to do so.
Activity
maxcrees commentedon May 27, 2023
I think the issue is that updating the counter (or any state for that matter) returns a piece of content - this is so the compiler is able to order the various updates with respect to layout order. This piece of content is typically not visible, but results in corner cases like this.
Because that content is inserted, pagebreak no longer believes the current page is entirely blank (although it appears to be), and thus weakness does not apply.
I agree that this would be useful to support, but I'm not sure how complex it would be to do so.