org-element: Fix comment block interpreter

* contrib/lisp/org-element.el (org-element-comment-block-interpreter):
  Fix comment block interpreter.
This commit is contained in:
Nicolas Goaziou 2012-04-27 17:27:08 +02:00
parent 7cdd0db287
commit 8e52d1d7f0
1 changed files with 2 additions and 4 deletions

View File

@ -1025,10 +1025,8 @@ containing `:begin', `:end', `:hiddenp', `:value' and
(defun org-element-comment-block-interpreter (comment-block contents)
"Interpret COMMENT-BLOCK element as Org syntax.
CONTENTS is nil."
(concat "#+BEGIN_COMMENT\n"
(org-remove-indentation
(org-element-property :value comment-block))
"#+BEGIN_COMMENT"))
(format "#+BEGIN_COMMENT\n%s#+END_COMMENT"
(org-remove-indentation (org-element-property :value comment-block))))
;;;; Example Block