Long table getting truncated, when importing from CSV.

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Long table getting truncated, when importing from CSV.

dbanas
Hi all,

I'm using this code:

[format="csv", options="header"]
|===
include::data/XTC2_Pinout_by_function.csv[]
|===

to import a rather long table from a CSV file.
And I'm seeing, in the PDF output, the table run all the way to the bottom edge of the paper, at which point it gets truncated (i.e. - It does not continue onto the next page.)

Does anyone know how to prevent this?

Thanks!
Reply | Threaded
Open this post in threaded view
|

Re: Long table getting truncated, when importing from CSV.

rockyallen
I don't know if it works using the built-in PDF output, but if you are using the DocBook/FOP route, add the breakable option to the table: options="breakable,header"
Reply | Threaded
Open this post in threaded view
|

RE: Long table getting truncated, when importing from CSV.

dbanas

That did it! Thanks.

 

It’s curious: the documentation claims that “breakable” is the default; apparently, not?

 

Thanks,

-db

 

 

From: rockyallen [via Asciidoctor :: Discussion] [mailto:ml-node+[hidden email]]
Sent: Friday, March 04, 2016 2:04 AM
To: David Banas
Subject: Re: Long table getting truncated, when importing from CSV.

 

I don't know if it works using the built-in PDF output, but if you are using the DocBook/FOP route, add the breakable option to the table: options="breakable,header"


If you reply to this email, your message will be added to the discussion below:

http://discuss.asciidoctor.org/Long-table-getting-truncated-when-importing-from-CSV-tp4465p4466.html

To unsubscribe from Long table getting truncated, when importing from CSV., click here.
NAML

Reply | Threaded
Open this post in threaded view
|

RE: Long table getting truncated, when importing from CSV.

metro
It looks like a bug: when generating pdf with docbook/fop,
- a long csv without a table title does not break in unless you use 'breakable'
- a long csv with a table title does properly break without having to use 'breakable'

MT
--
Reply | Threaded
Open this post in threaded view
|

Re: Long table getting truncated, when importing from CSV.

mojavelinux
Administrator
breakable is supposed to be the default.

In my tests, the table always breaks by default. My guess is that we're using different versions of the DocBook toolchain (or fop) and those versions have a different default behavior.

I'm using:

asciidoctor -b docbook document.adoc
fopub document.xml

-Dan

On Fri, Mar 4, 2016 at 12:18 PM, metro [via Asciidoctor :: Discussion] <[hidden email]> wrote:
It looks like a bug: when generating pdf with docbook/fop,
- a long csv without a table title does not break in unless you use 'breakable'
- a long csv with a table title does properly break without having to use 'breakable'

MT
--


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Long-table-getting-truncated-when-importing-from-CSV-tp4465p4469.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--
Dan Allen | @mojavelinux | http://google.com/profiles/dan.j.allen
Reply | Threaded
Open this post in threaded view
|

Re: Long table getting truncated, when importing from CSV.

metro
What Asciidoctor version did you test with? I am using 1.5.4.

I don't think the problem is in stylesheets or fop:

When I compare the generated docbook, I see '<?dbfo keep-together="auto"?>' generated in the xml for a regular table, but not for an informal table.

Once I add 'breakable' to the table options in Asciidoctor, the '<?dbfo keep-together="auto"?>' is generated for informal tables as well.

Without the dbfo processing instruction, tables will not break.

I am using docbook5.

MT
--