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
I've found a problem when creating some especially finicky tables.
I have not pinpointed the exact causal conditions, and which are superfluous, but when creating a table where:
The first row spans all columns
The second row first column spans two rows
The second row last column spans two rows
The second row second column cell spans two columns
All rows from three onward have the second column cell spanning two columns
The table will flow over the right edge of the page when converting to PDF. Highlighted in 'red cross' on image.
The issue is not present in the Visual Studio Code preview view. In that view, the table appears formatted correctly.
I can prevent the issue by ensuring at least one of the rows from three onward does not have a two-column spanning cell in column 2. This is marked with the green tick in image.
Asciidoc text below:
This table will format over the edge of the page when turned to PDF.
Hello,
I've found a problem when creating some especially finicky tables.
I have not pinpointed the exact causal conditions, and which are superfluous, but when creating a table where:
The table will flow over the right edge of the page when converting to PDF. Highlighted in 'red cross' on image.
![image](https://user-images.githubusercontent.com/37425298/133375583-b53c59b1-f204-4f13-99f2-e4f56e0372d8.png)
The issue is not present in the Visual Studio Code preview view. In that view, the table appears formatted correctly.
I can prevent the issue by ensuring at least one of the rows from three onward does not have a two-column spanning cell in column 2. This is marked with the green tick in image.
Asciidoc text below:
This table will format over the edge of the page when turned to PDF.
.Failure table
[cols="2,1,1,2"]
|===
4+h| Product Label Requirements
.2+h| Parameter
2+h| Value
.2+h| Comment
h| Type 1
h| Type 2
//table guts
| Column 1, row 1 2+| |
| Column 1, row 2 2+| | All rows have some merging, vertical or horizontal
| Column 1, row 3 2+| |
| Column 1, row 4 2+| |
| Column 1, row 5 2+| |
|===
This Table will not format over the edge of the page when turned to PDF.
.Success table
[cols="2,1,1,2"]
|===
4+h| Product Label Requirements
.2+h| Parameter
2+h| Value / Quantity
.2+h| Comment
h| LPA Type 1
h| LPA Type 2
//table guts
| Column 1, row 1 2+| |
| Column 1, row 2 |Populated |Columns | row with all 4 columns and no vertical or horz merging
| Column 1, row 3 2+| |
| Column 1, row 4 2+| |
| Column 1, row 5 2+| |
|===
Test1.adoc.txt
The text was updated successfully, but these errors were encountered: