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
@@ -205,17 +205,17 @@ func (e *Editor) SetOutlineActions(path []int, actions []Action) error {
if err != nil {
return err
}
context := node
ctx := node
if existing := node.child("Actions"); existing != nil {
context = existing
ctx = existing
}
encoded, err = editorXMLGenerated(encoded, context.name.Space)
encoded, err = editorXMLGenerated(encoded, ctx.name.Space)
if err != nil {
return err
}
var patch editorXMLPatch
if context != node {
patch = editorXMLPatch{context.start, context.end, encoded}
if ctx != node {
patch = editorXMLPatch{ctx.start, ctx.end, encoded}
} else {
if node.open != node.end {
encoded = append(encoded, data[node.open:node.close]...)