summaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
author+merlan #flirora <uruwi@protonmail.com>2024-09-26 04:39:52 -0400
committerGitHub <noreply@github.com>2024-09-26 08:39:52 +0000
commit30a301f8ff890bdd5ae41ed159e7669926ef6059 (patch)
tree2a7c9f89a3f269edb38629075f3f79614eca5e3b /crates
parent79558f44a015896f999e3c31e4147b1e78786603 (diff)
`CellGrid::resolve`: Clarify comment about `resolve_breakable` (#5010)
Diffstat (limited to 'crates')
-rw-r--r--crates/typst/src/layout/grid/cells.rs4
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());