mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-27 11:58:49 +01:00
🎨 表格块写入数据库表时在单元格之间添加空格 Fix https://github.com/siyuan-note/siyuan/issues/7654
This commit is contained in:
parent
68c825a10f
commit
6186eab57d
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue