Browse Source

ox-ascii: Fix error preventing export

* lisp/ox-ascii.el (org-ascii-filter-paragraph-spacing): Fix "concat:
  Wrong type argument: wholenump, auto" error.

Thanks to Xebar Saram for reporting the bug and to Eric Abrahamsen for
finding it out.
http://permalink.gmane.org/gmane.emacs.orgmode/89096
Nicolas Goaziou 10 years ago
parent
commit
0feec82c63
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lisp/ox-ascii.el

+ 1 - 1
lisp/ox-ascii.el

@@ -1945,7 +1945,7 @@ a communication channel.
 
 See `org-ascii-paragraph-spacing' for information."
   (let ((paragraph-spacing (plist-get info :ascii-paragraph-spacing)))
-    (when paragraph-spacing
+    (when (wholenump paragraph-spacing)
       (org-element-map tree 'paragraph
 	(lambda (p)
 	  (when (eq (org-element-type (org-export-get-next-element p info))