Report paragraph depth to the page builder
This commit is contained in:
1 parent
bd28917f05
commit
0f4c1f85ae
8 files changed
+140
-9
No files matched your search
@@ -314,8 +314,12 @@ impl PageBuilder {
|
||||
} else {
|
||||
*box_height
|
||||
};
|
||||
height += contribution;
|
||||
depth = *box_depth;
|
||||
// TeX keeps at most \maxdepth of a box descent below the
|
||||
// page; deeper material is added to the page height as the
|
||||
// box is contributed. A following box replaces the current
|
||||
// page depth, so earlier kept descents are discarded.
|
||||
height += contribution + (*box_depth - self.max_depth).max(0);
|
||||
depth = (*box_depth).min(self.max_depth);
|
||||
first_box = false;
|
||||
has_body = true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user