🎨 生成重复/冲突文档时移除 scroll 浏览位置属性 Fix https://github.com/siyuan-note/siyuan/issues/6016

This commit is contained in:
Liang Ding 2022-09-29 22:36:24 +08:00
parent e2211630d4
commit 268f83cf9e
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -45,6 +45,7 @@ func resetTree(tree *parse.Tree, titleSuffix string) {
titleSuffix = "(" + titleSuffix + ")"
tree.Root.SetIALAttr("id", tree.ID)
tree.Root.SetIALAttr("title", tree.Root.IALAttr("title")+" "+titleSuffix)
tree.Root.RemoveIALAttr("scroll")
p := path.Join(path.Dir(tree.Path), tree.ID) + ".sy"
tree.Path = p
tree.HPath = tree.HPath + " " + titleSuffix