🎨 Improve automatic deletion when block attribute value is empty https://github.com/siyuan-note/siyuan/issues/9529
This commit is contained in:
parent
a57c258fce
commit
c485ef326b
1 changed files with 1 additions and 1 deletions
|
@ -182,7 +182,7 @@ func setNodeAttrs0(node *ast.Node, nameValues map[string]string) (oldAttrs map[s
|
|||
continue
|
||||
}
|
||||
|
||||
if "" == value {
|
||||
if "" == strings.TrimSpace(value) {
|
||||
node.RemoveIALAttr(name)
|
||||
} else {
|
||||
node.SetIALAttr(name, value)
|
||||
|
|
Loading…
Add table
Reference in a new issue