ox: Fix duplicate internal references for same title headings
commit27b10fb2651ea46bf5f6be3dbbc3cc17a42b9536
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Fri, 11 Nov 2016 16:47:09 +0000 (11 17:47 +0100)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Fri, 11 Nov 2016 16:47:09 +0000 (11 17:47 +0100)
tree906b6ebe3828c1785efddc8e7368de75cd210326
parenta3c366eb98f029315b252212fb8764714249b092
ox: Fix duplicate internal references for same title headings

* lisp/ox.el (org-export-get-reference): Ensure different elements or
  objects generating the same search cell do not get the same internal
  reference.
* testing/lisp/test-ox.el (test-org-export/get-reference): Add test.

Reported-by: mstrey@strey.biz
<http://permalink.gmane.org/gmane.emacs.orgmode/110211>
lisp/ox.el
testing/lisp/test-ox.el