org-element: Clear text properties when interpreting a string

* lisp/org-element.el (org-element-interpret-data): Clear text
  properties when interpreting a string .
This commit is contained in:
Nicolas Goaziou 2012-11-11 23:47:34 +01:00
parent 2eaed05e70
commit c40a0dbd38
1 changed files with 2 additions and 2 deletions

View File

@ -4293,8 +4293,8 @@ Return Org syntax as a string."
(mapconcat
(lambda (obj) (org-element-interpret-data obj parent))
(org-element-contents data) ""))
;; Plain text.
((stringp data) data)
;; Plain text: remove `:parent' text property from output.
((stringp data) (org-no-properties data))
;; Element/Object without contents.
((not (org-element-contents data))
(funcall (intern (format "org-element-%s-interpreter" type))