forked from p30928647/excelize
This closes #1122, improve compatibility with LibreOffice
Fixed the issue auto filter doesn't work on LibreOffice if the sheet name has spaces
This commit is contained in:
parent
236ee61d20
commit
50c4dedf8d
2
table.go
2
table.go
|
@ -300,7 +300,7 @@ func (f *File) AutoFilter(sheet, hCell, vCell, format string) error {
|
|||
ref, filterDB := cellStart+":"+cellEnd, "_xlnm._FilterDatabase"
|
||||
wb := f.workbookReader()
|
||||
sheetID := f.GetSheetIndex(sheet)
|
||||
filterRange := fmt.Sprintf("%s!%s", sheet, ref)
|
||||
filterRange := fmt.Sprintf("'%s'!%s", sheet, ref)
|
||||
d := xlsxDefinedName{
|
||||
Name: filterDB,
|
||||
Hidden: true,
|
||||
|
|
Loading…
Reference in New Issue