Skip to content

DesignCraft: An open-source page and layout design editor written by scratch in pure Rust

Integration: rustfmt the composite note label call in shape_para

aiongg76746924fda5
diff --git a/crates/compose/src/shape.rs b/crates/compose/src/shape.rs
index 4ef99f9c6..b3977ca2a 100644
--- a/crates/compose/src/shape.rs
+++ b/crates/compose/src/shape.rs
@@ -417,7 +417,18 @@ pub(crate) fn shape_para(
let style = table.intern(db, &props);
let env = table.env_for(first.env, style);
let face = db.face(&props.font_family, &props.font_style);
- shape_segment(db, &story.text, first.range.clone(), label.get(a..b), &props, &face, env, &StyleRuns(&[(at, style)]), &mut glyphs, sub.vertical);
+ shape_segment(
+ db,
+ &story.text,
+ first.range.clone(),
+ label.get(a..b),
+ &props,
+ &face,
+ env,
+ &StyleRuns(&[(at, style)]),
+ &mut glyphs,
+ sub.vertical,
+ );
}
for (index, glyph) in glyphs[begin..].iter_mut().enumerate() {
glyph.len = if index == 0 { first.range.len() } else { 0 };