Skip to content

Commit

Permalink
🎨 表格块写入数据库表时在单元格之间添加空格 Fix #7654
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Mar 13, 2023
1 parent 68c825a commit 6186eab
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions kernel/treenode/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6186eab

Please sign in to comment.