mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-08-16 20:32:13 +01:00
chore(libreoffice): order ext list alphabetically
This commit is contained in:
@@ -267,86 +267,86 @@ func (a *Api) Pdf(ctx context.Context, logger *zap.Logger, inputPath, outputPath
|
|||||||
func (a *Api) Extensions() []string {
|
func (a *Api) Extensions() []string {
|
||||||
return []string{
|
return []string{
|
||||||
".bib",
|
".bib",
|
||||||
".doc",
|
|
||||||
".xml",
|
|
||||||
".docx",
|
|
||||||
".fodt",
|
|
||||||
".html",
|
|
||||||
".ltx",
|
|
||||||
".txt",
|
|
||||||
".odt",
|
|
||||||
".ott",
|
|
||||||
".pdb",
|
|
||||||
".pdf",
|
|
||||||
".psw",
|
|
||||||
".rtf",
|
|
||||||
".sdw",
|
|
||||||
".stw",
|
|
||||||
".sxw",
|
|
||||||
".uot",
|
|
||||||
".vor",
|
|
||||||
".wps",
|
|
||||||
".epub",
|
|
||||||
".png",
|
|
||||||
".bmp",
|
".bmp",
|
||||||
".emf",
|
|
||||||
".eps",
|
|
||||||
".fodg",
|
|
||||||
".gif",
|
|
||||||
".jpg",
|
|
||||||
".jpeg",
|
|
||||||
".met",
|
|
||||||
".odd",
|
|
||||||
".otg",
|
|
||||||
".pbm",
|
|
||||||
".pct",
|
|
||||||
".pgm",
|
|
||||||
".ppm",
|
|
||||||
".ras",
|
|
||||||
".std",
|
|
||||||
".svg",
|
|
||||||
".svm",
|
|
||||||
".swf",
|
|
||||||
".sxd",
|
|
||||||
".sxw",
|
|
||||||
".tif",
|
|
||||||
".tiff",
|
|
||||||
".xhtml",
|
|
||||||
".xpm",
|
|
||||||
".odp",
|
|
||||||
".fodp",
|
|
||||||
".pages",
|
|
||||||
".key",
|
|
||||||
".potm",
|
|
||||||
".pot",
|
|
||||||
".pptx",
|
|
||||||
".pps",
|
|
||||||
".ppt",
|
|
||||||
".pwp",
|
|
||||||
".sda",
|
|
||||||
".sdd",
|
|
||||||
".sti",
|
|
||||||
".sxi",
|
|
||||||
".uop",
|
|
||||||
".wmf",
|
|
||||||
".csv",
|
".csv",
|
||||||
".dbf",
|
".dbf",
|
||||||
".dif",
|
".dif",
|
||||||
|
".doc",
|
||||||
|
".docx",
|
||||||
|
".dotx",
|
||||||
|
".emf",
|
||||||
|
".eps",
|
||||||
|
".epub",
|
||||||
|
".fodg",
|
||||||
|
".fodp",
|
||||||
".fods",
|
".fods",
|
||||||
|
".fodt",
|
||||||
|
".gif",
|
||||||
|
".html",
|
||||||
|
".jpeg",
|
||||||
|
".jpg",
|
||||||
|
".key",
|
||||||
|
".ltx",
|
||||||
|
".met",
|
||||||
|
".odd",
|
||||||
|
".odg",
|
||||||
|
".odp",
|
||||||
".ods",
|
".ods",
|
||||||
|
".odt",
|
||||||
|
".otg",
|
||||||
".ots",
|
".ots",
|
||||||
|
".ott",
|
||||||
|
".pages",
|
||||||
|
".pbm",
|
||||||
|
".pct",
|
||||||
|
".pdb",
|
||||||
|
".pdf",
|
||||||
|
".pgm",
|
||||||
|
".png",
|
||||||
|
".pot",
|
||||||
|
".potm",
|
||||||
|
".ppm",
|
||||||
|
".pps",
|
||||||
|
".ppt",
|
||||||
|
".pptx",
|
||||||
|
".psw",
|
||||||
|
".pwp",
|
||||||
".pxl",
|
".pxl",
|
||||||
|
".ras",
|
||||||
|
".rtf",
|
||||||
|
".sda",
|
||||||
".sdc",
|
".sdc",
|
||||||
|
".sdd",
|
||||||
|
".sdw",
|
||||||
".slk",
|
".slk",
|
||||||
".stc",
|
".stc",
|
||||||
|
".std",
|
||||||
|
".sti",
|
||||||
|
".stw",
|
||||||
|
".svg",
|
||||||
|
".svm",
|
||||||
|
".swf",
|
||||||
".sxc",
|
".sxc",
|
||||||
|
".sxd",
|
||||||
|
".sxi",
|
||||||
|
".sxw",
|
||||||
|
".sxw",
|
||||||
|
".tif",
|
||||||
|
".tiff",
|
||||||
|
".txt",
|
||||||
|
".uop",
|
||||||
".uos",
|
".uos",
|
||||||
|
".uot",
|
||||||
|
".vor",
|
||||||
|
".wmf",
|
||||||
|
".wps",
|
||||||
|
".xhtml",
|
||||||
".xls",
|
".xls",
|
||||||
".xlt",
|
|
||||||
".xlsx",
|
".xlsx",
|
||||||
".odg",
|
".xlt",
|
||||||
".dotx",
|
|
||||||
".xltx",
|
".xltx",
|
||||||
|
".xml",
|
||||||
|
".xpm",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -450,7 +450,7 @@ func TestApi_Extensions(t *testing.T) {
|
|||||||
extensions := a.Extensions()
|
extensions := a.Extensions()
|
||||||
|
|
||||||
actual := len(extensions)
|
actual := len(extensions)
|
||||||
expect := 81
|
expect := 80
|
||||||
|
|
||||||
if actual != expect {
|
if actual != expect {
|
||||||
t.Errorf("expected %d extensions, but got %d", expect, actual)
|
t.Errorf("expected %d extensions, but got %d", expect, actual)
|
||||||
|
|||||||
Reference in New Issue
Block a user