From 90eab17186413947f0a3fa101e2d41be03ef9a2a Mon Sep 17 00:00:00 2001 From: aiongg Date: Mon, 12 Oct 2026 14:10:58 +0000 Subject: [PATCH] Integration: hyphenation zone applies to both single-line composers #585 tests Composer::SingleLine; next's Composer also has JapaneseSingleLine, so the zone check uses Composer::single_line(). --- crates/compose/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/compose/src/lib.rs b/crates/compose/src/lib.rs index 1c87fcc62..90cb4ebd5 100644 --- a/crates/compose/src/lib.rs +++ b/crates/compose/src/lib.rs @@ -2005,7 +2005,7 @@ fn spacing_for(pp: &ParaProps, base_size: f64) -> Spacing { ragged_stretch: base_size * 2.0, // The zone is the Single-line Composer's (unjustified text only), as in InDesign: the // Paragraph Composer weighs every break of the paragraph instead. - hyph_zone: if pp.align.is_justified() || pp.composer != Composer::SingleLine { 0.0 } else { pp.hyph_zone }, + hyph_zone: if pp.align.is_justified() || !pp.composer.single_line() { 0.0 } else { pp.hyph_zone }, optical: pp.optical_margin, korean_char_breaks: pp.korean_char_breaks, kinsoku_priority: match pp.kinsoku_type.as_str() {