org-element: Fix parsing for items/footnote definitions starting with special syntax
commitf969e24a4317eac2f3a7c14c565ae260f2877e3a
authorNicolas Goaziou <n.goaziou@gmail.com>
Wed, 12 Sep 2012 13:40:13 +0000 (12 15:40 +0200)
committerNicolas Goaziou <n.goaziou@gmail.com>
Wed, 12 Sep 2012 13:45:10 +0000 (12 15:45 +0200)
tree3e88eae19edb70556cb177cae6dc4ee4b059e351
parentcdc1db5fda8427ecc5eead1a1be99571f71bb71f
org-element: Fix parsing for items/footnote definitions starting with special syntax

* lisp/org-element.el (org-element--current-element): At the very
  beginning of a footnote definition or an item, next element is
  always a paragraph.
* testing/lisp/test-org-element.el: Add tests.

This patch fixes parsing for following cases:

 - - text

or

[fn:1] # Some text
lisp/org-element.el
testing/lisp/test-org-element.el