From 30a301f8ff890bdd5ae41ed159e7669926ef6059 Mon Sep 17 00:00:00 2001 From: +merlan #flirora Date: Thu, 26 Sep 2024 04:39:52 -0400 Subject: [PATCH] `CellGrid::resolve`: Clarify comment about `resolve_breakable` (#5010) --- crates/typst/src/layout/grid/cells.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/typst/src/layout/grid/cells.rs b/crates/typst/src/layout/grid/cells.rs index 2e788d344..64234aafb 100644 --- a/crates/typst/src/layout/grid/cells.rs +++ b/crates/typst/src/layout/grid/cells.rs @@ -411,8 +411,8 @@ impl<'a> CellGrid<'a> { let mut footer: Option<(usize, Span, Footer)> = None; let mut repeat_footer = false; - // Resolve the breakability of a cell, based on whether or not it spans - // an auto row. + // Resolves the breakability of a cell. Cells that span at least one + // auto-sized row or gutter are considered breakable. let resolve_breakable = |y, rowspan| { let auto = Sizing::Auto; let zero = Sizing::Rel(Rel::zero());