mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 07:00:12 +01:00
🐛 导出空文档 Word 和 PDF 时合并子文档失败 Fix https://github.com/siyuan-note/siyuan/issues/7429
This commit is contained in:
parent
8f30e76864
commit
d87d251b01
1 changed files with 2 additions and 1 deletions
|
|
@ -39,8 +39,9 @@ func mergeSubDocs(rootTree *parse.Tree) (ret *parse.Tree, err error) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 如果找不到非空段落,则使用第一个段落作为插入点
|
// 导出空文档 Word 和 PDF 时合并子文档失败 https://github.com/siyuan-note/siyuan/issues/7429
|
||||||
if nil == insertPoint {
|
if nil == insertPoint {
|
||||||
|
// 如果找不到非空段落,则使用第一个段落作为插入点
|
||||||
insertPoint = rootTree.Root.FirstChild
|
insertPoint = rootTree.Root.FirstChild
|
||||||
if nil == insertPoint {
|
if nil == insertPoint {
|
||||||
// 如果文档为空,则创建一个空段落作为插入点
|
// 如果文档为空,则创建一个空段落作为插入点
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue