org-element: Fix suprious "nil" in dynamic-block interpreter

* lisp/org-element.el (org-element-dynamic-block-interpreter): Ignore
  empty arguments instead of displaying "nil".

Reported-by: John Kitchin <jkitchin@andrew.cmu.edu>
<http://permalink.gmane.org/gmane.emacs.orgmode/113551>
This commit is contained in:
Nicolas Goaziou 2017-05-19 16:29:12 +02:00
parent f70eb7d2e8
commit c848ade014
1 changed files with 1 additions and 1 deletions

View File

@ -849,7 +849,7 @@ CONTENTS is the contents of the element."
(format "#+BEGIN: %s%s\n%s#+END:"
(org-element-property :block-name dynamic-block)
(let ((args (org-element-property :arguments dynamic-block)))
(and args (concat " " args)))
(if args (concat " " args) ""))
contents))