diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-11-09 22:49:25 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-11-09 22:49:25 +0100 |
| commit | d9ce194fe71076314955dd25896f64d48bccd6e5 (patch) | |
| tree | 1f81453d8f2bd0701863c18c4a742e89510d4375 /library/src/text | |
| parent | 010cc2effc2fd0e1c4e52d5c914cb4d74506bc0a (diff) | |
Remove role applications
Diffstat (limited to 'library/src/text')
| -rw-r--r-- | library/src/text/par.rs | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/library/src/text/par.rs b/library/src/text/par.rs index 0c4ec7af..b49e4914 100644 --- a/library/src/text/par.rs +++ b/library/src/text/par.rs @@ -530,7 +530,6 @@ fn prepare<'a>( let pod = Regions::one(size, regions.base, Axes::splat(false)); let mut frame = inline.layout_inline(world, &pod, styles)?.remove(0); frame.translate(Point::with_y(styles.get(TextNode::BASELINE))); - frame.apply_role(Role::GenericInline); items.push(Item::Frame(frame)); } } @@ -1040,7 +1039,6 @@ fn stack( let mut finished = vec![]; let mut first = true; let mut output = Frame::new(Size::with_x(width)); - output.apply_role(Role::Paragraph); // Stack the lines into one frame per region. for line in lines { @@ -1050,7 +1048,6 @@ fn stack( while !regions.first.y.fits(height) && !regions.in_last() { finished.push(output); output = Frame::new(Size::with_x(width)); - output.apply_role(Role::Paragraph); regions.next(); first = true; } |
