We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e26fdf4 commit a8d1354Copy full SHA for a8d1354
src/plugin/pagebreaks.js
@@ -86,8 +86,8 @@ Worker.prototype.toContainer = function toContainer() {
86
var endPage = Math.floor(clientRect.bottom / pxPageHeight);
87
var nPages = Math.abs(clientRect.bottom - clientRect.top) / pxPageHeight;
88
89
- // Turn on rules.before if the el is broken and is less than a page long.
90
- if (endPage !== startPage && nPages < 1) {
+ // Turn on rules.before if the el is broken and is at most one page long.
+ if (endPage !== startPage && nPages <= 1) {
91
rules.before = true;
92
}
93
0 commit comments