ox-texinfo: Gracefully handle node collision in the same hierarchy
commit8d43a0c49f54a76b9a0cb1d1d2afee8a1cf4f82b
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Sun, 5 Nov 2017 11:22:18 +0000 (5 12:22 +0100)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Sun, 5 Nov 2017 11:22:18 +0000 (5 12:22 +0100)
tree5fa3ac85bbe5a6a86723c1eda8cfaf1b60ab8420
parent04f35fc473a8bec330c8f8cafd98564783193d9a
ox-texinfo: Gracefully handle node collision in the same hierarchy

* lisp/ox-texinfo.el (org-texinfo--get-node): Ensure the upper element
  get the shorter node.

Considering the following document:

* Headline
** Headline

the level 1 headlines get "Headline" node and the other one
"Headline (1)".
lisp/ox-texinfo.el