diff --git a/lisp/org-capture.el b/lisp/org-capture.el index 5195b785e..b27de40fe 100644 --- a/lisp/org-capture.el +++ b/lisp/org-capture.el @@ -1753,9 +1753,7 @@ (defun org-capture-fill-template (&optional template initial annotation) 'org-tags-history)) ":"))) (when (org-string-nw-p ins) - (unless (eq (char-before) ?:) (insert ":")) - (insert ins) - (unless (eq (char-after) ?:) (insert ":")) + (org-toggle-tag ins 'on) (when (org-at-heading-p) (org-align-tags))))) ((or "C" "L") (let ((insert-fun (if (equal key "C") #'insert