diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-01-07 13:11:46 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-01-07 13:26:51 +0100 |
| commit | 0b624390906e911bde325b487b2710b67c8205c8 (patch) | |
| tree | 43fbfc28082add3dcb1398ae0b6f71202fe51efe /src/eval/node.rs | |
| parent | af014cfe5eea4233d8034c79c1a5f898c972396c (diff) | |
Scoped styles
Diffstat (limited to 'src/eval/node.rs')
| -rw-r--r-- | src/eval/node.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/eval/node.rs b/src/eval/node.rs index 37f230ee..ecbee8ee 100644 --- a/src/eval/node.rs +++ b/src/eval/node.rs @@ -302,7 +302,7 @@ impl Packer { if let Some(Styled { item: ParChild::Text(left), map }) = self.par.children.last_mut() { - if child.map.compatible(map, TextNode::has_property) { + if child.map.compatible::<TextNode>(map) { left.0.push_str(&right.0); return; } @@ -380,7 +380,7 @@ impl Packer { return; } - if !self.par.styles.compatible(styles, ParNode::has_property) { + if !self.par.styles.compatible::<ParNode>(styles) { self.parbreak(None); self.par.styles = styles.clone(); return; @@ -397,7 +397,7 @@ impl Packer { return; } - if self.top && !self.flow.styles.compatible(styles, PageNode::has_property) { + if self.top && !self.flow.styles.compatible::<PageNode>(styles) { self.pagebreak(); self.flow.styles = styles.clone(); return; |
