Skip to content

Commit c6db0bc

Browse files
ruchir19Mottie
authored andcommitted
Fixed an issue that occurred when you try to download table data as CSV with multiple headers and Colspan greater than 3. It caused column header alignment problem when I export out. (#1373)
1 parent 829e5a6 commit c6db0bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/widgets/widget-output.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
colspanLen = parseInt( $cell.attr('colspan'), 10) - 1;
8686
// allow data-attribute to be an empty string
8787
txt = output.formatData( c, wo, $cell, isHeader );
88-
for (col = 1; col <= colspanLen; col++) {
88+
for (col = 0; col < colspanLen; col++) {
8989
// if we're processing the header & making JSON, the header names need to be unique
9090
if ($cell.filter('[rowspan]').length) {
9191
rowspanLen = parseInt( $cell.attr('rowspan'), 10);

0 commit comments

Comments
 (0)