From 3d02726ad4dc3bc6a92d5b68ef8421ac4db44076 Mon Sep 17 00:00:00 2001 From: xuri Date: Fri, 14 Oct 2022 00:48:16 +0800 Subject: This closes #320, support custom chart axis font style --- file.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'file.go') diff --git a/file.go b/file.go index c83d17e..7ce536c 100644 --- a/file.go +++ b/file.go @@ -72,7 +72,7 @@ func (f *File) SaveAs(name string, opts ...Options) error { return ErrMaxFilePathLength } f.Path = name - if _, ok := supportedContentType[filepath.Ext(f.Path)]; !ok { + if _, ok := supportedContentTypes[filepath.Ext(f.Path)]; !ok { return ErrWorkbookFileFormat } file, err := os.OpenFile(filepath.Clean(name), os.O_WRONLY|os.O_TRUNC|os.O_CREATE, os.ModePerm) @@ -112,7 +112,7 @@ func (f *File) WriteTo(w io.Writer, opts ...Options) (int64, error) { f.options = &opts[i] } if len(f.Path) != 0 { - contentType, ok := supportedContentType[filepath.Ext(f.Path)] + contentType, ok := supportedContentTypes[filepath.Ext(f.Path)] if !ok { return 0, ErrWorkbookFileFormat } -- cgit v1.2.1