mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
🎨 Improve list item convert to doc https://github.com/siyuan-note/siyuan/issues/12411
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user