Skip to content

Commit

Permalink
This closes #1122, improve compatibility with LibreOffice
Browse files Browse the repository at this point in the history
Fixed the issue auto filter doesn't work on LibreOffice if the sheet name has spaces
  • Loading branch information
xuri committed Jan 16, 2022
1 parent 236ee61 commit 50c4ded
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion table.go
Expand Up @@ -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,
Expand Down

0 comments on commit 50c4ded

Please sign in to comment.