diff options
| author | PgBiel <9021226+PgBiel@users.noreply.github.com> | 2025-06-12 21:10:11 -0300 |
|---|---|---|
| committer | PgBiel <9021226+PgBiel@users.noreply.github.com> | 2025-06-28 22:39:35 -0300 |
| commit | b3fd4676c47c79fdbcc727f218927a92354d91d8 (patch) | |
| tree | 8f01c76178c59ec1079d8d541d3d0ac56e298faf | |
| parent | 0951fe13fd96e91620434dd19fb33f2993d6624f (diff) | |
not using repeatable
| -rw-r--r-- | crates/typst-library/src/layout/grid/resolve.rs | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/crates/typst-library/src/layout/grid/resolve.rs b/crates/typst-library/src/layout/grid/resolve.rs index 1e607ccc..7b4130b4 100644 --- a/crates/typst-library/src/layout/grid/resolve.rs +++ b/crates/typst-library/src/layout/grid/resolve.rs @@ -1632,11 +1632,7 @@ impl<'x> CellGridResolver<'_, '_, 'x> { level: row_group.repeatable_level.get(), }; - footers.push(if row_group.repeat { - Repeatable::Repeated(data) - } else { - Repeatable::NotRepeated(data) - }); + footers.push(Repeatable { inner: data, repeated: row_group.repeat }); } } } @@ -1869,9 +1865,7 @@ impl<'x> CellGridResolver<'_, '_, 'x> { header.range.end = header.range.end.min(row_amount); } - for repeatable_footer in &mut *footers { - let footer = repeatable_footer.unwrap_mut(); - + for footer in &mut *footers { // TODO(subfooters): will need a global slice of headers and // footers for when we have multiple footers // Alternatively, never include the gutter in the footer's @@ -1909,7 +1903,7 @@ impl<'x> CellGridResolver<'_, '_, 'x> { if !at_least_one_cell { // TODO: short-lived (and remove this?) - repeatable_footer.repeated = false; + footer.repeated = false; } } } |
