fix office 2007 trouble
This commit is contained in:
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{}{}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user