Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect AsciiDoc table header generated. #47

Closed
jvdvegt opened this issue Aug 30, 2021 · 1 comment
Closed

Incorrect AsciiDoc table header generated. #47

jvdvegt opened this issue Aug 30, 2021 · 1 comment
Labels

Comments

@jvdvegt
Copy link
Contributor

jvdvegt commented Aug 30, 2021

The AsciiDocTableWriter generates a table header which is not recognized by Asciidoc (but it is by asciidoctor-pdf):

An example of the table definition generated is:
[cols="<40,>5, <10, <31, <15, <59" options="header"]

Asciidoc 9.0.0rc1 does not like this:

line 29: illegal style name: cols="<40

This is fixed by separating the 'cols' and the 'options' with a comma, here:

rows = [f'[cols="{cols}" options="header"]']

    rows = [f'[cols="{cols}", options="header"]']

This makes the resulting asciidoc look like this (note the comma before 'options') :
[cols="<40,>5, <10, <31, <15, <59", options="header"]

@thombashi thombashi added the bug label Sep 19, 2021
thombashi added a commit that referenced this issue Sep 20, 2021
@thombashi
Copy link
Owner

Thank you for your report.

The problem fixed at pytablewriter 0.63.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants