Function: org-man-paragraph

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

Signature

(org-man-paragraph PARAGRAPH CONTENTS INFO)

Documentation

Transcode a PARAGRAPH element from Org to Man.

CONTENTS is the contents of the paragraph, as a string. INFO is the plist used as a communication channel.

Source Code

;; Defined in /usr/src/emacs/lisp/org/ox-man.el.gz
;;; Paragraph

(defun org-man-paragraph (paragraph contents _info)
  "Transcode a PARAGRAPH element from Org to Man.
CONTENTS is the contents of the paragraph, as a string.  INFO is
the plist used as a communication channel."
  (let ((parent (plist-get (nth 1 paragraph) :parent)))
    (when parent
      (let ((parent-type (car parent))
            (fixed-paragraph ""))
        (cond ((and (eq parent-type 'item)
                    (plist-get (nth 1 parent) :bullet ))
               (setq fixed-paragraph (concat "" contents)))
              ((eq parent-type 'section)
               (setq fixed-paragraph (concat ".PP\n" contents)))
              ((eq parent-type 'footnote-definition)
               (setq fixed-paragraph contents))
              (t (setq fixed-paragraph (concat "" contents))))
        fixed-paragraph ))))