diff options
| author | +merlan #flirora <uruwi@protonmail.com> | 2024-09-26 04:39:52 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-26 08:39:52 +0000 |
| commit | 30a301f8ff890bdd5ae41ed159e7669926ef6059 (patch) | |
| tree | 2a7c9f89a3f269edb38629075f3f79614eca5e3b | |
| parent | 79558f44a015896f999e3c31e4147b1e78786603 (diff) | |
`CellGrid::resolve`: Clarify comment about `resolve_breakable` (#5010)
| -rw-r--r-- | crates/typst/src/layout/grid/cells.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/typst/src/layout/grid/cells.rs b/crates/typst/src/layout/grid/cells.rs index 2e788d34..64234aaf 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()); |
