From 130420c6dc2e59d1e8f4bc29dbbdd9d770fb61d4 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Sun, 8 Sep 2024 12:36:55 +0800 Subject: [PATCH] :art: Improve list item convert to doc https://github.com/siyuan-note/siyuan/issues/12411 --- kernel/model/listitem.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/model/listitem.go b/kernel/model/listitem.go index db82b02f2..abbf32745 100644 --- a/kernel/model/listitem.go +++ b/kernel/model/listitem.go @@ -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) {