diff --git a/kernel/model/shortcuts.go b/kernel/model/shortcuts.go index 6f4527f1e..c61173a25 100644 --- a/kernel/model/shortcuts.go +++ b/kernel/model/shortcuts.go @@ -20,6 +20,7 @@ import ( "bytes" "os" "path/filepath" + "strings" "github.com/88250/gulu" "github.com/siyuan-note/logging" @@ -70,7 +71,7 @@ func ShortcutsAppendToDailynote() { } }() - content := buff.String() + content := strings.TrimSpace(buff.String()) if 1 > len(content) { return }