fix office 2007 trouble
All checks were successful
Deploy / CreateImage (push) Successful in 2m34s
Deploy / ValidateConfig (push) Successful in 22s
Deploy / MigrateDatabase (push) Successful in 39s
Deploy / DeployService (push) Successful in 23s

This commit is contained in:
Pasha 2025-05-20 16:02:14 +03:00 committed by skeris
parent 795763b61d
commit b821a546c6

@ -309,6 +309,11 @@ func handleFile(file *excelize.File, sheet, cell, content, s3Prefix string, noAc
urle = s3Prefix + urle
}
if urle == "" {
noAccept[content] = struct{}{}
return
}
fmt.Println("ORRRRR", urle, s3Prefix)
display, tooltip := urle, urle
@ -321,6 +326,21 @@ func handleFile(file *excelize.File, sheet, cell, content, s3Prefix string, noAc
}); err != nil {
fmt.Println(err.Error())
}
styleID, err := file.NewStyle(&excelize.Style{
Font: &excelize.Font{
Color: "0000FF",
Underline: "single",
},
})
if err != nil {
fmt.Println("NewStyle error:", err.Error())
} else {
if err := file.SetCellStyle(sheet, cell, cell, styleID); err != nil {
fmt.Println("SetCellStyle error:", err.Error())
}
}
noAccept[content] = struct{}{}
}