Browse Source

Fixed the missing "/" in sheets

U-NORTH_AMERICA\ACHER 11 years ago
parent
commit
37a77ef88f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      file.go

+ 1 - 1
file.go

@@ -153,7 +153,7 @@ func (f *File) MarshallParts() (map[string]string, error) {
 		types.Overrides = append(
 			types.Overrides,
 			xlsxOverride{
-				PartName:    partName,
+				PartName:    "/" + partName,
 				ContentType: "application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"})
 		workbookRels[rId] = sheetPath
 		workbook.Sheets.Sheet[sheetIndex-1] = xlsxSheet{