This commit is contained in:
Daniel 2024-09-08 12:36:55 +08:00
parent a17015dfdc
commit 130420c6dc
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -66,7 +66,7 @@ func ListItem2Doc(srcListItemID, targetBoxID, targetPath string) (srcRootBlockID
}
var children []*ast.Node
for c := listItemNode.FirstChild.Next; nil != c; c = c.Next {
for c := listItemNode.FirstChild; nil != c; c = c.Next {
children = append(children, c)
}
if 1 > len(children) {