This commit is contained in:
Daniel 2024-03-14 22:09:17 +08:00
parent a5ce4139a6
commit 91ad199142
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -231,6 +231,11 @@ 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 {