|
@@ -195,7 +195,7 @@ func Doc2Heading(srcID, targetID string, after bool) (srcTreeBox, srcTreePath st
|
|
if "" != tagIAL && 0 < len(tags) {
|
|
if "" != tagIAL && 0 < len(tags) {
|
|
// 带标签的文档块转换为标题块时将标签移动到标题块下方 https://github.com/siyuan-note/siyuan/issues/6550
|
|
// 带标签的文档块转换为标题块时将标签移动到标题块下方 https://github.com/siyuan-note/siyuan/issues/6550
|
|
|
|
|
|
- tagPara := treenode.NewParagraph()
|
|
|
|
|
|
+ tagPara := treenode.NewParagraph("")
|
|
for i, tag := range tags {
|
|
for i, tag := range tags {
|
|
if "" == tag {
|
|
if "" == tag {
|
|
continue
|
|
continue
|
|
@@ -365,7 +365,7 @@ func Heading2Doc(srcHeadingID, targetBoxID, targetPath string) (srcRootBlockID,
|
|
headingNode.Unlink()
|
|
headingNode.Unlink()
|
|
srcTree.Root.SetIALAttr("updated", util.CurrentTimeSecondsStr())
|
|
srcTree.Root.SetIALAttr("updated", util.CurrentTimeSecondsStr())
|
|
if nil == srcTree.Root.FirstChild {
|
|
if nil == srcTree.Root.FirstChild {
|
|
- srcTree.Root.AppendChild(treenode.NewParagraph())
|
|
|
|
|
|
+ srcTree.Root.AppendChild(treenode.NewParagraph(""))
|
|
}
|
|
}
|
|
treenode.RemoveBlockTreesByRootID(srcTree.ID)
|
|
treenode.RemoveBlockTreesByRootID(srcTree.ID)
|
|
if err = indexWriteTreeUpsertQueue(srcTree); err != nil {
|
|
if err = indexWriteTreeUpsertQueue(srcTree); err != nil {
|