mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-29 15:06:46 +08:00
This commit is contained in:
1 parent
f1864952ad
commit
41a50d9e96
17 files changed
+629
-181
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user