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

A list in a table cell that runs over the end of a PDF page is unexpectedly truncated and falsely reported as an error #2426

Closed jeffrey-chongsathien-oxinst closed 1 year ago

jeffrey-chongsathien-oxinst commented 1 year ago

Affects: Asciidoctor PDF 2.3.7 using Asciidoctor 2.0.18 [https://asciidoctor.org]

Say, I have a table:

[width="100%",cols="13%,87%a",options="header",]
|===
|Property 
|Description

|State
|One of the following:

* Option 1: Blah blah
* Option 2: Blah blah
* Option 3: Blah blah

|Blah
|Blah blah
|===

In the output pdf, say this table starts 4/5 down a page, and runs over the end of the page (Option 2 is the last text that fits on the pdf page). asciidoctor-pdf responds:

The workaround is to replace the list with a description list.

[width="100%",cols="13%,87%a",options="header",]
|===
|Property 
|Description

|State
|One of the following:

[horizontal]
Option 1:: Blah blah
Option 2:: Blah blah
Option 3:: Blah blah

|Blah
|Blah blah
|===

In this case, asciidoctor-pdf responds as one would expect:

The fix is to have this behaviour in the case of a list in a table cell overrunning the end of a PDF page.

mojavelinux commented 1 year ago

I'm not able to reproduce this. In my test, the row is advanced to the next page as expected.

Can you provide a precise example that demonstrates the problem reliably?

mojavelinux commented 1 year ago

Please provide a reproducible test case or sample project. Otherwise, I'm going to close this issue as inaccurate.

mojavelinux commented 1 year ago

Without any additional information, I have to mark this report as invalid. Feel free to reopen if you're able to provide the necessary information to reproduce it.