feat(编辑能力): 完善搜索编辑打印与色彩处理
build.yaml / build (push) Successful in 4m37s

This commit is contained in:
xiaoqidun committed 2026-10-26 21:01:38 +08:00
1 parent f1864952ad
commit 41a50d9e96
17 files changed
+629 -181

No files matched your search

+2 -1
View File
@@ -20,6 +20,7 @@ import (
"encoding/xml"
"fmt"
"maps"
"path"
"slices"
"strings"
)
@@ -337,7 +338,7 @@ func editorStructureIndexContext(ctx context.Context, base *editorSource, parts
if base.document.CustomTags.Path == "" {
container := root.child("CustomTags")
if container == nil || len(container.children) == 0 {
name = packageAvailableName(base.reader, nil, base.reader.RootDir+"/CustomTags.xml")
name = packageAvailableName(base.reader, nil, path.Join(base.reader.RootDir, "CustomTags.xml"))
data, err = root.containerXML("CustomTags", nil, nil)
if err == nil {
root, err = parseEditorXMLContext(ctx, data)