Forráskód Böngészése

fix:open excel after save, excel file format error issue #432

rentiansheng 6 éve
szülő
commit
7a4a6a7eb2
1 módosított fájl, 1 hozzáadás és 0 törlés
  1. 1 0
      sheet.go

+ 1 - 0
sheet.go

@@ -233,6 +233,7 @@ func (s *Sheet) makeXLSXSheet(refTable *RefTable, styles *xlsxStyleSheet) *xlsxW
 		} else {
 		} else {
 			customWidth = true
 			customWidth = true
 		}
 		}
+		// When the cols content is empty, the cols flag is not output in the xml file.
 		if worksheet.Cols == nil {
 		if worksheet.Cols == nil {
 			worksheet.Cols = &xlsxCols{Col: []xlsxCol{}}
 			worksheet.Cols = &xlsxCols{Col: []xlsxCol{}}
 		}
 		}