From c40a0dbd3818d3544f4b0aaf6e24851152f0d3ad Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Sun, 11 Nov 2012 23:47:34 +0100 Subject: [PATCH] org-element: Clear text properties when interpreting a string * lisp/org-element.el (org-element-interpret-data): Clear text properties when interpreting a string . --- lisp/org-element.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/org-element.el b/lisp/org-element.el index 0db5b7b43..d81d40b3b 100644 --- a/lisp/org-element.el +++ b/lisp/org-element.el @@ -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))