Browse Source

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>
Nicolas Goaziou 7 years ago
parent
commit
ee24c0769b
1 changed files with 5 additions and 9 deletions
  1. 5 9
      lisp/ox-man.el

+ 5 - 9
lisp/ox-man.el

@@ -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