Bug: loss of borders in table when span cells is used

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug: loss of borders in table when span cells is used

gsalone
This post was updated on .
I have the following syntax:

[options="header"]
|===
| Column 1 | Column 2 | Column 3
.2+|Content in a single cell that spans rows 1 and 2  |Cell in column 2, row 1 .2+|Content in a single cell that spans rows 1 and 2
|Cell in column 2, row 2
|===

As you can see, the right border of the bottom cell is lost when the column on its right is a spanned into multiple rows one. This happens only during the file preview in Chrome (thankfully pdf is rendered just fine). Any suggestions? Is this a known issue?

Reply | Threaded
Open this post in threaded view
|

Re: Bug: loss of borders in table when span cells is used

Alexander Schwartz
There are at least two open issues regarding this... ... and one suggestion that might provide a solution to this, there is already a related PR for the asciidoctor-stylesheet-factory: Issue #2563 contains a CSS fix that might work for you or might be a starting point for something that works in your situation.

I've tried it locally and adding some pass-through-CSS fixed the example your provided in my preview:

++++
<style>
table.grid-all {
border-collapse: collapse;
}
</style>
++++
Alexander Schwartz (alexander.schwartz@gmx.net)
https://www.ahus1.de
Reply | Threaded
Open this post in threaded view
|

Re: Bug: loss of borders in table when span cells is used

gsalone
That did the trick just fine, thank you!