Fix links without contents in table of contents' entries
commit827af5987348665edd4a632e827925b947c00f96
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Sat, 14 Oct 2017 10:29:52 +0000 (14 12:29 +0200)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Sat, 14 Oct 2017 10:29:52 +0000 (14 12:29 +0200)
treeb032f42d67bea3f81d50e563b8797afacbf5b578
parent025dbd7f3130244d5ac3d03c299e81cc795eeed2
Fix links without contents in table of contents' entries

* lisp/ox.el (org-export-toc-entry-backend): New function.

* lisp/ox-html.el (org-html--format-toc-headline):
* lisp/ox-md.el (org-md--build-toc):
* lisp/ox-odt.el (org-odt-toc): Use new function.

* lisp/ox-texinfo.el (org-texinfo--sanitize-title):
(org-texinfo--wrap-float): Handle links without contents.

* testing/lisp/test-ox.el (test-org-export/toc-entry-backend): New
  test.

Reported-by: ConcreteVitamin <concretevitamin@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-10/msg00235.html>
lisp/ox-html.el
lisp/ox-md.el
lisp/ox-odt.el
lisp/ox-texinfo.el
lisp/ox.el
testing/lisp/test-ox.el