PptxGenJS icon indicating copy to clipboard operation
PptxGenJS copied to clipboard

Table header gets mangled when a cell with both rowspan and colspan is present

Open dipan66 opened this issue 7 years ago • 3 comments

I have been trying to create a table with a corner cell which has both rowspan and colspan.

image As the image shows - when such a such a scenario is used, the table loses values in the row that is spanned out - for the number of columns that is spanned out. That is, this example, I have been using 2 rows and 2 columns spanned, so the last 2 values in the second row are lost. I have experimented with 2 rows and 3 columns spanned, and the result is consistent - last 3 values of the second row is lost.

Have uploaded the sample code here: https://pastebin.com/nUEmLiGG

dipan66 avatar May 22 '19 13:05 dipan66

A workaround as below works to get me the lost cells. Basically - I introduced as many blank values in the second row as there were columns spanned out. And the lost values reappeared. image

dipan66 avatar May 22 '19 13:05 dipan66

[Closing due to age]

gitbrent avatar Feb 28 '20 05:02 gitbrent

@dipan66 your workaround is working fine. it seems like a bug. rowspan and colspan both not working together

jsvishal avatar Jun 27 '20 14:06 jsvishal