From 0b624390906e911bde325b487b2710b67c8205c8 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Fri, 7 Jan 2022 13:11:46 +0100 Subject: Scoped styles --- src/eval/node.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/eval/node.rs') 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::(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::(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::(styles) { self.pagebreak(); self.flow.styles = styles.clone(); return; -- cgit v1.2.3