asciidoctor / asciidoctor-pdf

:page_with_curl: Asciidoctor PDF: A native PDF converter for AsciiDoc based on Asciidoctor and Prawn, written entirely in Ruby.
https://docs.asciidoctor.org/pdf-converter/latest/
MIT License
1.14k stars 500 forks source link

Do not inseart page break between table and it's caption #2470

Closed jaskij closed 8 months ago

jaskij commented 8 months ago

If a table would start at the very end of a page but there is not enough space for it, a page break can be inserted between the caption and the table. This is obviously undesirable. As a workaround, one can insert a manual page break before the table, but it should not be needed.

mojavelinux commented 8 months ago

This is already supported. See https://docs.asciidoctor.org/pdf-converter/latest/breakable-and-unbreakable/#breakable