Просмотр исходного кода

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

rentiansheng 6 лет назад
Родитель
Сommit
7a4a6a7eb2
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      sheet.go

+ 1 - 0
sheet.go

@@ -233,6 +233,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{}}
 		}