🎨 Improve document tag adding interaction https://github.com/siyuan-note/siyuan/issues/13311
This commit is contained in:
parent
0050a791fa
commit
1a48215076
1 changed files with 4 additions and 1 deletions
|
@ -216,7 +216,10 @@ func setNodeAttrs0(node *ast.Node, nameValues map[string]string) (oldAttrs map[s
|
|||
}
|
||||
|
||||
for name, value := range nameValues {
|
||||
if "" == strings.TrimSpace(value) {
|
||||
value = util.RemoveInvalid(value)
|
||||
value = strings.TrimSpace(value)
|
||||
value = strings.TrimSuffix(value, ",")
|
||||
if "" == value {
|
||||
node.RemoveIALAttr(name)
|
||||
} else {
|
||||
node.SetIALAttr(name, value)
|
||||
|
|
Loading…
Add table
Reference in a new issue