Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to disallow pagebreaks after row #388

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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