Skip to content

Commit

Permalink
Merge pull request #16782 from ckeditor/ck/6289-page-break
Browse files Browse the repository at this point in the history
Other (page-break): No longer generate an extra empty page after placing a page break after an element with a margin.
  • Loading branch information
niegowski authored Jul 23, 2024
2 parents e326f48 + bef9e06 commit 28d0389
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/ckeditor5-page-break/theme/pagebreak.css
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,14 @@
display: none;
}
}

/*
* From time to time placing page-break directly after a block element with margin causes appending a new blank page in pagination mode.
* Removing margin-bottom from the block element fixes that issue and the margin is not being moved to the next blank page.
*
* Keep this in sync with the pagination plugins.
*/
.ck-content *:has(+ .page-break) {
margin-bottom: 0;
}
}

0 comments on commit 28d0389

Please sign in to comment.