ox-man: Fix code and verbatim export

* lisp/ox-man.el (org-man-code):
(org-man-verbatim): Fix functions.

Reported-by: Anthony Agelastos <iqgrande@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-10/msg00313.html>
This commit is contained in:
Nicolas Goaziou 2017-10-18 22:54:40 +02:00
parent 8c5c030c64
commit ee24c0769b
1 changed files with 5 additions and 9 deletions

View File

@ -350,10 +350,8 @@ holding contextual information."
;;; Code
(defun org-man-code (code _contents _info)
"Transcode a CODE object from Org to Man.
CONTENTS is nil. INFO is a plist used as a communication
channel."
(format "\\fC%s\\fP" code))
"Transcode a CODE object from Org to Man."
(format "\\fC%s\\fP" (org-element-property :value code)))
;;; Drawer
@ -1029,11 +1027,9 @@ holding contextual information."
;;; Verbatim
(defun org-man-verbatim (_verbatim contents _info)
"Transcode a VERBATIM object from Org to Man.
CONTENTS is nil. INFO is a plist used as a communication
channel."
(format ".nf\n%s\n.fi" contents))
(defun org-man-verbatim (verbatim _contents _info)
"Transcode a VERBATIM object from Org to Man."
(format ".nf\n%s\n.fi" (org-element-property :value verbatim)))
;;; Verse Block