mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
🐛 Exporting PDF hangs after focusing heading block Fix https://github.com/siyuan-note/siyuan/issues/7848
This commit is contained in:
@@ -628,7 +628,9 @@ func prepareExportTree(bt *treenode.BlockTree) (ret *parse.Tree) {
|
||||
first.InsertBefore(node)
|
||||
}
|
||||
}
|
||||
ret.Path = bt.Path
|
||||
ret.HPath = bt.HPath
|
||||
ret.Box = bt.BoxID
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ import (
|
||||
|
||||
func mergeSubDocs(rootTree *parse.Tree) (ret *parse.Tree, err error) {
|
||||
ret = rootTree
|
||||
rootBlock := &Block{Box: rootTree.Box, ID: rootTree.ID, Path: rootTree.Path}
|
||||
rootBlock := &Block{Box: rootTree.Box, ID: rootTree.ID, Path: rootTree.Path, HPath: rootTree.HPath}
|
||||
if err = buildBlockChildren(rootBlock); nil != err {
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user