CellGrid::resolve: Clarify comment about resolve_breakable (#5010)

This commit is contained in:
+merlan #flirora 2024-09-26 04:39:52 -04:00 committed by GitHub
parent 79558f44a0
commit 30a301f8ff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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());