Integrate native repeat boxes and PDF bookmarks
This commit is contained in:
1 parent
5163fc9854
commit
38e4822370
33 files changed
+1208
-143
No files matched your search
@@ -152,7 +152,10 @@ impl Executor {
|
||||
if b.width + q > width {
|
||||
let mut shrink = [0i64; 4];
|
||||
for node in &material {
|
||||
if let TextNode::Glue(g) | TextNode::NamedGlue(g, _) = node {
|
||||
if let TextNode::Glue(g)
|
||||
| TextNode::NamedGlue(g, _)
|
||||
| TextNode::Leaders(LeaderGlue { glue: g, .. }) = node
|
||||
{
|
||||
shrink[usize::from(g.shrink.order)] += i64::from(g.shrink.amount);
|
||||
}
|
||||
}
|
||||
@@ -177,7 +180,7 @@ impl Executor {
|
||||
displacement = (width - b.width - e + 1).div_euclid(2);
|
||||
if matches!(
|
||||
material.first(),
|
||||
Some(TextNode::Glue(_) | TextNode::NamedGlue(_, _))
|
||||
Some(TextNode::Glue(_) | TextNode::NamedGlue(_, _) | TextNode::Leaders(_))
|
||||
) {
|
||||
displacement = 0;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user