diff --git a/lisp/org.el b/lisp/org.el index 11918796a..0c61c7601 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -13594,8 +13594,8 @@ EXTRA is additional text that will be inserted into the notes buffer." (regexp-quote (cdr (assq 'state org-log-note-headings))) `(("%d" . ,org-ts-regexp-inactive) ("%D" . ,org-ts-regexp) - ("%s" . "\"\\S-+\"") - ("%S" . "\"\\S-+\"") + ("%s" . "\\(?:\"\\S-+\"\\)?") + ("%S" . "\\(?:\"\\S-+\"\\)?") ("%t" . ,org-ts-regexp-inactive) ("%T" . ,org-ts-regexp) ("%u" . ".*?")