From 02e081472aac51ab6ed554504bdbf7d0ee25ad37 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 17 Nov 2026 08:48:18 +0000 Subject: [PATCH] docs(print-pages): leave avoidBreakInside off when a detail table can run past one sheet With the key on, a record:line_items table taller than one sheet still moves whole to the next sheet before it is broken, which leaves the first sheet mostly blank and can cost a sheet. Say so where the key is described. Claude-Session: https://claude.ai/code/session_01ADHkmSYVw1sqCsaHSJS9JC Co-authored-by: Claude --- content/docs/ui/print-pages.mdx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/content/docs/ui/print-pages.mdx b/content/docs/ui/print-pages.mdx index a7713ec256f..a814e041456 100644 --- a/content/docs/ui/print-pages.mdx +++ b/content/docs/ui/print-pages.mdx @@ -78,6 +78,15 @@ On a print page whose sections may break between sheets, author one `record:deta per section: `avoidBreakInside` keeps each block whole on one sheet when it fits, so a block holding several sections moves to the next sheet as one piece. +Leave `avoidBreakInside` off on a print page whose detail table can run past one sheet, such +as a `record:line_items` table on a quote or invoice with many lines. A table is one block, +so with the key on, a table that does not fit the rest of the first sheet moves whole to the +next sheet even when it cannot fit any single sheet, and is broken there. The first sheet is +then left with only the blocks above the table and a blank lower part, and the document can +take one sheet more: measured on an A4 invoice page, a 21-line table printed on 3 sheets +with the key on and 2 with it off. With the key off, the table starts under the blocks above +it and runs on, with its column headings repeated on each sheet (`repeatTableHeaders`). + Blocks print whole: - `record:line_items` loads at most its row cap (`limit`, 500 when unset). On a print page,