Function: org-man--protect-example

org-man--protect-example is a byte-compiled function defined in ox-man.el.gz.

Signature

(org-man--protect-example TEXT)

Documentation

Escape necessary characters for verbatim TEXT.

Source Code

;; Defined in /usr/src/emacs/lisp/org/ox-man.el.gz
(defun org-man--protect-example (text)
  "Escape necessary characters for verbatim TEXT."
  ;; See man groff_man_style; \e must be used to render backslash.
  ;; Note that groff's .eo (disable backslash) and .ec (re-enable
  ;; backslash) cannot be used as per the same man page.
  (replace-regexp-in-string "\\\\" "\\e" text nil t))