drop local hyper link from excel
This commit is contained in:
parent
8567060e1b
commit
736893b2aa
@ -252,11 +252,11 @@ func handleImage(file *excelize.File, sheet, cell, content string, count, row in
|
||||
if err := file.SetCellValue(sheet, cell, linkText); err != nil {
|
||||
fmt.Println(err.Error())
|
||||
}
|
||||
if err := file.SetCellHyperLink(sheet, cell, fmt.Sprintf("%s!A%d", mediaSheet, mediaRow), "Location", excelize.HyperlinkOpts{
|
||||
Display: &linkText,
|
||||
}); err != nil {
|
||||
fmt.Println(err.Error())
|
||||
}
|
||||
//if err := file.SetCellHyperLink(sheet, cell, fmt.Sprintf("%s!A%d", mediaSheet, mediaRow), "Location", excelize.HyperlinkOpts{
|
||||
// Display: &linkText,
|
||||
//}); err != nil {
|
||||
// fmt.Println(err.Error())
|
||||
//}
|
||||
}
|
||||
} else {
|
||||
if len(content) > 1 && content[0] == '`' && content[len(content)-1] == '`' {
|
||||
|
Loading…
Reference in New Issue
Block a user