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 (org-element-parent paragraph)))
(when parent
(let ((parent-type (org-element-type parent))
(fixed-paragraph ""))
(cond ((and (eq parent-type 'item)
(org-element-property :bullet parent))
(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))))