mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-22 00:20:47 +02:00
🎨 Ignore the last empty paragraph block when exporting merged sub-documents https://github.com/siyuan-note/siyuan/issues/15028
This commit is contained in:
parent
13e618075b
commit
b466792276
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue