Function: projectile-doctor--field
projectile-doctor--field is a byte-compiled function defined in
projectile.el.
Signature
(projectile-doctor--field LABEL VALUE &optional FACE)
Documentation
Insert a LABEL/VALUE line into the report.
VALUE is rendered with %s; a nil or empty one reads as "n/a". FACE,
when given, is applied to the value; otherwise a value that is an
unambiguous status word is colored by its polarity.
Source Code
;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
;;;; Doctor report rendering
(defun projectile-doctor--field (label value &optional face)
"Insert a LABEL/VALUE line into the report.
VALUE is rendered with `%s'; a nil or empty one reads as \"n/a\". FACE,
when given, is applied to the value; otherwise a value that is an
unambiguous status word is colored by its polarity."
(projectile--report-label label projectile-doctor--label-width)
(let* ((value (if (or (null value) (equal value "")) "n/a" (format "%s" value)))
(face (or face (projectile--report-status-face value))))
(insert (if face (projectile--report-face value face) value) "\n")))