Skip to content

Commit 50c4ded

Browse files
committed
This closes qax-os#1122, improve compatibility with LibreOffice
Fixed the issue auto filter doesn't work on LibreOffice if the sheet name has spaces
1 parent 236ee61 commit 50c4ded

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

table.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ func (f *File) AutoFilter(sheet, hCell, vCell, format string) error {
300300
ref, filterDB := cellStart+":"+cellEnd, "_xlnm._FilterDatabase"
301301
wb := f.workbookReader()
302302
sheetID := f.GetSheetIndex(sheet)
303-
filterRange := fmt.Sprintf("%s!%s", sheet, ref)
303+
filterRange := fmt.Sprintf("'%s'!%s", sheet, ref)
304304
d := xlsxDefinedName{
305305
Name: filterDB,
306306
Hidden: true,

0 commit comments

Comments
 (0)