org-element: Fix parapraph parsing
commiteb77fed33fa0306ebed2224f7895b688320847b2
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Mon, 27 Apr 2015 20:24:00 +0000 (27 22:24 +0200)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Mon, 27 Apr 2015 20:27:48 +0000 (27 22:27 +0200)
tree46dff8481a093baa2aaf3047512cab3685738649
parent2965f8fb0c048a20b52ba90627e7cca6fe706c93
org-element: Fix parapraph parsing

* lisp/org-element.el (org-element--set-regexps): Refine
  `org-element-paragraph-separate'.
(org-element-paragraph-parser): Fix paragraph parsing when followed by
a dual keyword or an ill-formed latex environment.

* testing/lisp/test-org-element.el (test-org-element/paragraph-parser):
  Add tests.

Reported-by: Jacob Gerlach <jacobgerlach@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/97256>
lisp/org-element.el
testing/lisp/test-org-element.el