Просмотр исходного кода

:bug: Focused heading block export does not contain its following blocks Fix https://github.com/siyuan-note/siyuan/issues/7834

Liang Ding 2 лет назад
Родитель
Сommit
f7d9540b67
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      kernel/treenode/blocktree.go

+ 1 - 1
kernel/treenode/blocktree.go

@@ -271,7 +271,7 @@ func IndexBlockTree(tree *parse.Tree) {
 		slice.m.Unlock()
 
 		if nil != bt {
-			if bt.Updated != n.IALAttr("updated") || bt.Path != tree.Path || bt.BoxID != tree.Box || bt.HPath != tree.HPath {
+			if bt.Updated != n.IALAttr("updated") || bt.Type != TypeAbbr(n.Type.String()) || bt.Path != tree.Path || bt.BoxID != tree.Box || bt.HPath != tree.HPath {
 				children := ChildBlockNodes(n) // 需要考虑子块,因为一些操作(比如移动块)后需要同时更新子块
 				changedNodes = append(changedNodes, children...)
 			}