File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -1841,7 +1841,11 @@ def _format_regular_rows(self):
1841
1841
for idx , idxval in enumerate (index_values ):
1842
1842
yield ExcelCell (self .rowcounter + idx , 0 , idxval , header_style )
1843
1843
1844
- for cell in self ._generate_body (coloffset = 1 ):
1844
+ coloffset = 1
1845
+ else :
1846
+ coloffset = 0
1847
+
1848
+ for cell in self ._generate_body (coloffset ):
1845
1849
yield cell
1846
1850
1847
1851
def _format_hierarchical_rows (self ):
@@ -1907,7 +1911,7 @@ def _format_hierarchical_rows(self):
1907
1911
indexcolval , header_style )
1908
1912
gcolidx += 1
1909
1913
1910
- for cell in self ._generate_body (coloffset = gcolidx ):
1914
+ for cell in self ._generate_body (gcolidx ):
1911
1915
yield cell
1912
1916
1913
1917
def _generate_body (self , coloffset ):
You can’t perform that action at this time.
0 commit comments