File tree 1 file changed +2
-9
lines changed
1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -391,9 +391,6 @@ def _translate(self):
391
391
BLANK_CLASS = "blank"
392
392
BLANK_VALUE = ""
393
393
394
- def format_attr (pair ):
395
- return f"{ pair ['key' ]} ={ pair ['value' ]} "
396
-
397
394
# for sparsifying a MultiIndex
398
395
idx_lengths = _get_level_lengths (self .index )
399
396
col_lengths = _get_level_lengths (self .columns , hidden_columns )
@@ -462,9 +459,7 @@ def format_attr(pair):
462
459
}
463
460
colspan = col_lengths .get ((r , c ), 0 )
464
461
if colspan > 1 :
465
- es ["attributes" ] = [
466
- format_attr ({"key" : "colspan" , "value" : f'"{ colspan } "' })
467
- ]
462
+ es ["attributes" ] = [f'colspan="{ colspan } "' ]
468
463
row_es .append (es )
469
464
head .append (row_es )
470
465
@@ -508,9 +503,7 @@ def format_attr(pair):
508
503
}
509
504
rowspan = idx_lengths .get ((c , r ), 0 )
510
505
if rowspan > 1 :
511
- es ["attributes" ] = [
512
- format_attr ({"key" : "rowspan" , "value" : f'"{ rowspan } "' })
513
- ]
506
+ es ["attributes" ] = [f'rowspan="{ rowspan } "' ]
514
507
row_es .append (es )
515
508
516
509
for c , col in enumerate (self .data .columns ):
You can’t perform that action at this time.
0 commit comments