Browse Source

org-element: Remove empty strings between objects in parse tree

* contrib/lisp/org-element.el (org-element-parse-objects): Remove
  empty strings between objects in parse tree.
Nicolas Goaziou 13 years ago
parent
commit
aae20190a3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      contrib/lisp/org-element.el

+ 1 - 1
contrib/lisp/org-element.el

@@ -3116,7 +3116,7 @@ allowed in the current object."
 	(setq next-object (funcall get-next-object candidates))
 	;; 1. Text before any object.
 	(let ((obj-beg (org-element-get-property :begin next-object)))
-	  (unless (= beg obj-beg)
+	  (unless (= (point) obj-beg)
 	    (push (buffer-substring-no-properties (point) obj-beg) acc)))
 	;; 2. Object...
 	(let ((obj-end (org-element-get-property :end next-object))