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.
This commit is contained in:
Nicolas Goaziou 2012-01-08 22:57:53 +01:00
parent f29e6edb90
commit aae20190a3

View file

@ -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))