mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-12-05 05:04:20 +00:00
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)
This commit is contained in:
parent
829e5a62b5
commit
c6db0bc75d
@ -85,7 +85,7 @@
|
||||
colspanLen = parseInt( $cell.attr('colspan'), 10) - 1;
|
||||
// allow data-attribute to be an empty string
|
||||
txt = output.formatData( c, wo, $cell, isHeader );
|
||||
for (col = 1; col <= colspanLen; col++) {
|
||||
for (col = 0; col < colspanLen; col++) {
|
||||
// if we're processing the header & making JSON, the header names need to be unique
|
||||
if ($cell.filter('[rowspan]').length) {
|
||||
rowspanLen = parseInt( $cell.attr('rowspan'), 10);
|
||||
|
Loading…
Reference in New Issue
Block a user