🎨 Ignore the last empty paragraph block when exporting merged sub-documents https://github.com/siyuan-note/siyuan/issues/15028

This commit is contained in:
Daniel 2025-06-19 10:46:31 +08:00
parent 13e618075b
commit b466792276
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -60,6 +60,12 @@ func mergeSubDocs(rootTree *parse.Tree) (ret *parse.Tree, err error) {
break
}
}
if ast.NodeParagraph == insertPoint.Type && nil == insertPoint.FirstChild {
// 删除空段落
// Ignore the last empty paragraph block when exporting merged sub-documents https://github.com/siyuan-note/siyuan/issues/15028
insertPoint.Unlink()
}
return
}