Function: denote--get-front-matter-value-no-indentation
denote--get-front-matter-value-no-indentation is a byte-compiled
function defined in denote.el.
Signature
(denote--get-front-matter-value-no-indentation COMPONENT LINE FILE-TYPE)
Documentation
Return the COMPONENT on LINE given the FILE-TYPE without any indentation.
Source Code
;; Defined in ~/.emacs.d/elpa/denote-4.2.3/denote.el
(defun denote--get-front-matter-value-no-indentation (component line file-type)
"Return the COMPONENT on LINE given the FILE-TYPE without any indentation."
(when-let* ((key-regexp-fn (denote--get-component-key-regexp-function component))
(regexp (funcall key-regexp-fn file-type)))
(with-temp-buffer
(insert line)
(goto-char (point-min))
(when (re-search-forward regexp nil t 1)
(re-search-forward "\\s-*" (line-end-position) t)
(buffer-substring-no-properties (point) (line-end-position))))))