org-element: Allow duals keywords with only secondary value
commit98d5666bac8cdaadcb692ba5dabb342641bd2319
authorNicolas Goaziou <n.goaziou@gmail.com>
Sun, 28 Oct 2012 21:43:50 +0000 (28 22:43 +0100)
committerNicolas Goaziou <n.goaziou@gmail.com>
Sun, 28 Oct 2012 21:45:34 +0000 (28 22:45 +0100)
tree08bc5f36ae087bf9ce676a2e9d1444a02f955d51
parentf6e936c2b9197689afd2b347d381a80612e0b545
org-element: Allow duals keywords with only secondary value

* lisp/org-element.el (org-element--collect-affiliated-keywords):
  Allow duals keywords with only secondary value.
* testing/lisp/test-org-element.el: Add test.

This patch allows to parse correctly the following:

    #+CAPTION[short caption]:
    #+CAPTION: Very long caption
    Some paragraph.
lisp/org-element.el
testing/lisp/test-org-element.el