Daniel 2024-11-10 12:04:56 +08:00
parent 14f5570558
commit a0491cd4ff
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
13 changed files with 21 additions and 18 deletions

View file

@ -46,7 +46,7 @@ func mergeSubDocs(rootTree *parse.Tree) (ret *parse.Tree, err error) {
insertPoint = rootTree.Root.FirstChild
if nil == insertPoint {
// 如果文档为空,则创建一个空段落作为插入点
insertPoint = treenode.NewParagraph()
insertPoint = treenode.NewParagraph("")
rootTree.Root.AppendChild(insertPoint)
}
}