🐛 Line break lost after soft break of end-of-line element https://github.com/siyuan-note/siyuan/issues/10718

This commit is contained in:
Daniel 2024-03-24 23:47:48 +08:00
parent 1a403ff745
commit c7beb2a1f8
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
4 changed files with 4 additions and 10 deletions

View file

@ -233,11 +233,6 @@ func fixLegacyData(tip, node *ast.Node, idMap *map[string]bool, needFix, needMig
node.Tokens = []byte("Untitled")
*needFix = true
}
if 1 == len(node.Tokens) && bytes.Equal(node.Tokens, []byte("\n")) {
// https://ld246.com/article/1710381064911
node.Tokens = []byte("")
*needFix = true
}
case ast.NodeTagCloseMarker:
if nil != tip.LastChild {
if ast.NodeTagOpenMarker == tip.LastChild.Type {