From 44738e34c05691266f0f5612e2672bed63fea205 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Tue, 25 Mar 2025 00:00:32 +0800 Subject: [PATCH] :memo: Supports append text by shortcuts to the dailynote doc on Android https://github.com/siyuan-note/siyuan/issues/14414 --- kernel/model/shortcuts.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 }