You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using asciidoctor, the following code is expected to generate a table with four rows. The first column is expected to be aligned to the left, the second centered and the third to the right. The third and the fourth row contain a cell spanning two cells each.
[cols="1,^1,>1",options="header"]
|===
| Column 1
| Column 2
| Column 3
| Test 1.1
| Test 2.1
| Test 3.1
| Test 1.2
2+| Test 2.2
2+| Test 1.3
| Test 3.3
|===
However, the following result is rendered.
Actual
Expected
The text was updated successfully, but these errors were encountered:
This is a known limitation of Asciidoctor and has to do with how it associates colspecs to columns when there are rowspans and colspans (it basically doesn't see them). We're not ruling out a solution, but it is already covered by #989 (then follow all the related issues from there). It also happens to apply for colspans too. I'll keep this issue open since it's all connected.
The workaround is to apply the formatting directly to the table cell in question.
[cols="1,^1,>1"]
|===
| Column 1 | Column 2 | Column 3
| Test 1.1
| Test 2.1
| Test 3.1
| Test 1.2
2+| Test 2.2
2+| Test 1.3
>| Test 3.3
|===
For some context, the implementation of colspec mapping in Asciidoctor is admittedly naive, but to fix it requires a substantial overhaul of the design and logic. I don't have the time to do that at the moment.
Using asciidoctor, the following code is expected to generate a table with four rows. The first column is expected to be aligned to the left, the second centered and the third to the right. The third and the fourth row contain a cell spanning two cells each.
However, the following result is rendered.
Actual
Expected
The text was updated successfully, but these errors were encountered: