🎨 表格块写入数据库表时在单元格之间添加空格 Fix https://github.com/siyuan-note/siyuan/issues/7654

This commit is contained in:
Liang Ding 2023-03-13 21:34:20 +08:00
parent 68c825a10f
commit 6186eab57d
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -162,6 +162,11 @@ func NodeStaticContent(node *ast.Node, excludeTypes []string, includeTextMarkATi
}
switch n.Type {
case ast.NodeTableCell:
// 表格块写入数据库表时在单元格之间添加空格 https://github.com/siyuan-note/siyuan/issues/7654
if 0 < buf.Len() && ' ' != buf.Bytes()[buf.Len()-1] {
buf.WriteByte(' ')
}
case ast.NodeImage:
linkDest := n.ChildByType(ast.NodeLinkDest)
var linkDestStr, ocrText string