Prevent unintented expansion of % in conversion from item to heading
This commit is contained in:
parent
fcb340ad81
commit
a0bcceaf8c
@ -450,8 +450,10 @@ Via %%(with-temp-buffer (db/org-add-link-to-current-clock) (string-trim (buffer-
|
||||
%s
|
||||
|
||||
%%?"
|
||||
first-line-of-body
|
||||
rest-of-body)))
|
||||
;; Quote % to prevent unintented expansion by
|
||||
;; `org-capture-fill-template'.
|
||||
(replace-regexp-in-string "%" "\\\\%" first-line-of-body)
|
||||
(replace-regexp-in-string "%" "\\\\%" rest-of-body))))
|
||||
(org-capture-set-target-location)
|
||||
(org-capture-place-template)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user