Skip to content

Conversation

@obi134
Copy link

@obi134 obi134 commented Oct 30, 2024

Add option to disallow pagebreaks after row by adding allow_pagebreak with default value = True. When disallowed, "*" is added at the end of row after "\"

with doc.create(LongTable("|l|l|")) as data_table: 
        data_table.add_hline()
        data_table.add_row([11,21], allow_pagebreak=False)
        data_table.add_hline()
        data_table.add_row([21, 22])
        data_table.add_hline()
\begin{longtable}{|l|l|}%
\hline%
11&21\\*%
\hline%
21&22\\%
\hline%
\end{longtable}%

Add option to disallow pagebreaks after row by adding allow_pagebreak with default value = True. When disallowed, "*" is added at the end of row after "//"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant