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 501 forks source link

Page break may happen after titles for tables, lists, and paragraphs #2260

Closed elsav-emrs closed 2 years ago

elsav-emrs commented 2 years ago

Config:

C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/asciidoctor-pdf-2.1.1/lib/asciidoctor-pdf.rb

Description:

When generating PDF I noticed we could have page breaks right after a title for tables, lists or paragraphs,

For tables, I would expect to have the title, header and first row together.

Below are some PDF output examples of the issue.

Examples

Paragraphs

image

Lists

image

Tables

image

mojavelinux commented 2 years ago

Please direct questions about usage to the project chat at https://chat.asciidoctor.org.

The docs clearly state what orphan prevention behavior is provided by this converter and how to make use of it. See https://docs.asciidoctor.org/pdf-converter/latest/breakable-and-unbreakable/