feat(统一输入): 统一流式输入及接口命名
build.yaml / build (push) Successful in 43s

This commit is contained in:
xiaoqidun committed 2026-10-19 08:43:50 +08:00
1 parent 151ddb0a20
commit d97c6f4e6f
60 files changed
+570 -262

No files matched your search

+5 -5
View File
@@ -396,19 +396,19 @@ func editorBookmarkDefinition(data []byte, name string, next *Bookmark, add bool
}
container := root.child("Bookmarks")
if add {
context := container
if context == nil {
context = root
ctx := container
if ctx == nil {
ctx = root
}
attrs, err := next.Dest.attributes()
if err != nil {
return nil, err
}
dest, err := context.containerXML("Dest", attrs, nil)
dest, err := ctx.containerXML("Dest", attrs, nil)
if err != nil {
return nil, err
}
item, err := context.containerXML("Bookmark", ofdAttrs{{Name: xml.Name{Local: "Name"}, Value: next.Name}}, dest)
item, err := ctx.containerXML("Bookmark", ofdAttrs{{Name: xml.Name{Local: "Name"}, Value: next.Name}}, dest)
if err != nil {
return nil, err
}