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.
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?
--