Browse Source

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

rentiansheng 6 years ago
parent
commit
ce5ea8dd4b
1 changed files with 1 additions and 0 deletions
  1. 1 0
      sheet.go

+ 1 - 0
sheet.go

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