Re: Problem using Asciidoctor-PDF to format wide autowidth table header cells

Posted by mojavelinux on
URL: https://discuss.asciidoctor.org/Problem-using-Asciidoctor-PDF-to-format-wide-autowidth-table-header-cells-tp7220p7221.html

You are not doing anything wrong. However, you do need to upgrade prawn-table. This was an upstream bug and has since been fixed. However, prawn-table has yet to be released with this fix, so you have to load the gem from GitHub.

See https://github.com/asciidoctor/asciidoctor-pdf/issues/599#issuecomment-485709277 for instructions and an explanation.

Best,

-Dan

On Sat, Oct 12, 2019 at 3:07 PM jtkorb [via Asciidoctor :: Discussion] <[hidden email]> wrote:
I'm having trouble formatting an autowidth table when the header cell is wider than all the cells in the column: the header cell wraps unnecessarily (even if the header is only one word, the last letter wraps).

Here is an example of three tables:

[options="header,autowidth"]
|====
|Header Cell
|text
|====

[options="header,autowidth"]
|====
|Header
|text
|====

[options="header,autowidth"]
|====
|Header
|more text
|====

Formatting with asciidoctor-pdf looks like this...



Conversion to HTML (with plain asciidoctor) works fine.  

Is my syntax incorrect, or is there a workaround I can use?


If you reply to this email, your message will be added to the discussion below:
https://discuss.asciidoctor.org/Problem-using-Asciidoctor-PDF-to-format-wide-autowidth-table-header-cells-tp7220.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML


--
Dan Allen | @mojavelinux | https://twitter.com/mojavelinux