mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 18:10:12 +01:00
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
5ec41ff6cb
commit
80faba6c75
1 changed files with 9 additions and 0 deletions
|
|
@ -1894,7 +1894,12 @@ func exportSYZip(boxID, rootDirPath, baseFolderName string, docPaths []string) (
|
||||||
if ast.NodeAttributeView == n.Type {
|
if ast.NodeAttributeView == n.Type {
|
||||||
avIDs = append(avIDs, n.AttributeViewID)
|
avIDs = append(avIDs, n.AttributeViewID)
|
||||||
}
|
}
|
||||||
|
|
||||||
avs := n.IALAttr(av.NodeAttrNameAvs)
|
avs := n.IALAttr(av.NodeAttrNameAvs)
|
||||||
|
if "" == avs {
|
||||||
|
return ast.WalkContinue
|
||||||
|
}
|
||||||
|
|
||||||
for _, avID := range strings.Split(avs, ",") {
|
for _, avID := range strings.Split(avs, ",") {
|
||||||
avIDs = append(avIDs, strings.TrimSpace(avID))
|
avIDs = append(avIDs, strings.TrimSpace(avID))
|
||||||
}
|
}
|
||||||
|
|
@ -1903,6 +1908,10 @@ func exportSYZip(boxID, rootDirPath, baseFolderName string, docPaths []string) (
|
||||||
}
|
}
|
||||||
avIDs = gulu.Str.RemoveDuplicatedElem(avIDs)
|
avIDs = gulu.Str.RemoveDuplicatedElem(avIDs)
|
||||||
for _, avID := range avIDs {
|
for _, avID := range avIDs {
|
||||||
|
if !ast.IsNodeIDPattern(avID) {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
exportAv(avID, exportStorageAvDir, exportDir, assetPathMap)
|
exportAv(avID, exportStorageAvDir, exportDir, assetPathMap)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue