how can I prevent a gt() table from being split across pages in a quarto pdf?

,

I don't want to force a page break, just keep the table together. I have tried
:::{.cell page-break-inside=’avoid’}

gt() #etc.

:::
and
\begin {samepage}

gt() #etc.

\end{samepage}

of course I'm just flailing. Thanks for any help.

Can you share a reproducible example please ?

That is usually the minimum you need to provided so that you help us help you.

Thank you