Skip to content

Commit

Permalink
This closes qax-os#1298, fix doc properties missing after creating ne…
Browse files Browse the repository at this point in the history
…w worksheet
  • Loading branch information
xuri committed Jul 11, 2023
1 parent 9fd9954 commit 4f00c80
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions sheet.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@ func (f *File) NewSheet(sheet string) int {
}
}
sheetID++
// Update docProps/app.xml
f.setAppXML()
// Update [Content_Types].xml
f.setContentTypes("/xl/worksheets/sheet"+strconv.Itoa(sheetID)+".xml", ContentTypeSpreadSheetMLWorksheet)
// Create new sheet /xl/worksheets/sheet%d.xml
Expand Down Expand Up @@ -239,11 +237,6 @@ func (f *File) relsWriter() {
})
}

// setAppXML update docProps/app.xml file of XML.
func (f *File) setAppXML() {
f.saveFileList(defaultXMLPathDocPropsApp, []byte(templateDocpropsApp))
}

// replaceRelationshipsBytes; Some tools that read spreadsheet files have very
// strict requirements about the structure of the input XML. This function is
// a horrible hack to fix that after the XML marshalling is completed.
Expand Down

0 comments on commit 4f00c80

Please sign in to comment.