Function: org-export-get-coderef-format

org-export-get-coderef-format is a byte-compiled function defined in ox.el.gz.

Signature

(org-export-get-coderef-format PATH DESC)

Documentation

Return format string for code reference link.

PATH is the link path. DESC is its description.

Source Code

;; Defined in /usr/src/emacs/lisp/org/ox.el.gz
(defun org-export-get-coderef-format (path desc)
  "Return format string for code reference link.
PATH is the link path.  DESC is its description."
  (save-match-data
    (cond ((not desc) "%s")
	  ((string-match (regexp-quote (concat "(" path ")")) desc)
	   (replace-match "%s" t t desc))
	  (t desc))))