mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 07:00:12 +01:00
🎨 Clean code
This commit is contained in:
parent
e7e21b247e
commit
e7f2fb9c9c
1 changed files with 0 additions and 11 deletions
|
|
@ -704,17 +704,6 @@ func AddPDFOutline(id, p string, merge bool) (err error) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//if 4 == Conf.Export.BlockRefMode { // 块引转脚注
|
|
||||||
// var footnotesBms []*pdfcpu.Bookmark
|
|
||||||
// for _, bm := range footnotes {
|
|
||||||
// footnotesBms = append(footnotesBms, bm)
|
|
||||||
// }
|
|
||||||
// sort.Slice(footnotesBms, func(i, j int) bool { return footnotesBms[i].PageFrom < footnotesBms[j].PageFrom })
|
|
||||||
// for _, bm := range footnotesBms {
|
|
||||||
// topBms = append(topBms, bm)
|
|
||||||
// }
|
|
||||||
//}
|
|
||||||
|
|
||||||
outFile := inFile + ".tmp"
|
outFile := inFile + ".tmp"
|
||||||
err = api.AddBookmarksFile(inFile, outFile, topBms, nil)
|
err = api.AddBookmarksFile(inFile, outFile, topBms, nil)
|
||||||
if nil != err {
|
if nil != err {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue