Implement native PDF links and vertical discard lists
This commit is contained in:
1 parent
b6567f67e2
commit
a53d9c9bf9
29 files changed
+980
-109
No files matched your search
@@ -125,6 +125,7 @@ pub(super) fn find_break(
|
||||
pub(super) fn prune_top(
|
||||
nodes: Vec<NativeVerticalNode>,
|
||||
mut skip: Glue,
|
||||
mut discards: Option<&mut Vec<NativeVerticalNode>>,
|
||||
steps: &mut usize,
|
||||
limit: usize,
|
||||
) -> Result<Vec<NativeVerticalNode>, String> {
|
||||
@@ -148,6 +149,8 @@ pub(super) fn prune_top(
|
||||
| NativeVerticalNode::Output(_)
|
||||
) {
|
||||
result.push(node);
|
||||
} else if let Some(discards) = discards.as_deref_mut() {
|
||||
discards.push(node);
|
||||
}
|
||||
}
|
||||
Ok(result)
|
||||
|
||||
Reference in new issue
Block a user