org-export: Fix footnotes export outside parsing scope
commit36711b05ba6957bd81118dfd7e81b72fd4f7d828
authorNicolas Goaziou <n.goaziou@gmail.com>
Fri, 13 Apr 2012 13:30:02 +0000 (13 15:30 +0200)
committerNicolas Goaziou <n.goaziou@gmail.com>
Fri, 13 Apr 2012 13:47:13 +0000 (13 15:47 +0200)
treec402dcbcd78359c924d34531454dcee6a2a7ecb6
parent0c302d412c3198f4a64914d86fc910249144c624
org-export: Fix footnotes export outside parsing scope

* contrib/lisp/org-export.el (org-export-get-buffer-attributes):
  Function renamed from `org-export-initial-options'.
(org-export-store-footnote-definitions): New function.
(org-export-as): Store footnote definitions at the appropriate place.
It happens twice if buffer gets expanded.
* testing/lisp/test-org-export.el: Add test.
contrib/lisp/org-export.el
testing/lisp/test-org-export.el