summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <n.goaziou@gmail.com>2012-11-11 22:47:34 (GMT)
committer Nicolas Goaziou <n.goaziou@gmail.com>2012-11-11 22:47:34 (GMT)
commitc40a0dbd3818d3544f4b0aaf6e24851152f0d3ad (patch)
treefc7aa7b0e45b9897b41648806c66a0f8a455f64c
parent2eaed05e7032d201814ef4dca61de3faef1e767e (diff)
downloadorg-mode-c40a0dbd3818d3544f4b0aaf6e24851152f0d3ad.zip
org-mode-c40a0dbd3818d3544f4b0aaf6e24851152f0d3ad.tar.gz
org-element: Clear text properties when interpreting a string
* lisp/org-element.el (org-element-interpret-data): Clear text properties when interpreting a string .
-rw-r--r--lisp/org-element.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/org-element.el b/lisp/org-element.el
index 0db5b7b..d81d40b 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))