summaryrefslogtreecommitdiff
path: root/sheet.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2022-08-03 00:42:16 +0800
committerGitHub <noreply@github.com>2022-08-03 00:42:16 +0800
commit504d469d3da34602a9a88bd76669ce44fdbc67cf (patch)
tree86da54d1e8f5ab43626e4c10f0dc40fc9655437f /sheet.go
parentfd0eb2bcbf31eccfc2b853dc406e0cfd247f7fb2 (diff)
This closes #1298, fix doc properties missing after creating new worksheet
Diffstat (limited to 'sheet.go')
-rw-r--r--sheet.go7
1 files changed, 0 insertions, 7 deletions
diff --git a/sheet.go b/sheet.go
index 51410b0..01dd167 100644
--- a/sheet.go
+++ b/sheet.go
@@ -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
@@ -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.