mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-02 14:58:49 +01:00
🎨 Improve list item convert to doc https://github.com/siyuan-note/siyuan/issues/12411
This commit is contained in:
parent
a17015dfdc
commit
130420c6dc
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue