diff options
author | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2019-01-21 18:40:54 +0100 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2019-01-21 18:40:54 +0100 |
commit | fadc83d4fe382436c3234dd2712fafe926cdaeea (patch) | |
tree | 6136b655b9238372a8bc064f9e9da6a645ffa967 | |
parent | 372e03372495e1d9cd5a9f2eb1d333e8a9edc787 (diff) | |
download | org-mode-fadc83d4fe382436c3234dd2712fafe926cdaeea.tar.gz |
ox-texinfo: Fix anchors for all elements and objects
* lisp/ox-texinfo.el (org-texinfo--get-node): Fix function, too strict
about allowed types. One can always fallback to
`org-export-get-reference'.
Reported-by: wlharvey4@mac.com
<http://lists.gnu.org/r/emacs-orgmode/2019-01/msg00274.html>
-rw-r--r-- | lisp/ox-texinfo.el | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lisp/ox-texinfo.el b/lisp/ox-texinfo.el index ef4a8c1..13ec237 100644 --- a/lisp/ox-texinfo.el +++ b/lisp/ox-texinfo.el @@ -479,12 +479,12 @@ node or anchor name is unique." (org-texinfo--sanitize-title (org-export-get-alt-title datum info) info)) (`radio-target - (org-texinfo--sanitize-title - (org-element-contents datum) info)) + (org-export-data (org-element-contents datum) info)) (`target - (org-export-data (org-element-property :value datum) info)) - (type - (error "Cannot generate node name for type: %S" type))))) + (org-element-property :value datum)) + (_ + (or (org-element-property :name datum) + (org-export-get-reference datum info)))))) (name basename)) ;; Org exports deeper elements before their parents. If two ;; node names collide -- e.g., they have the same title -- |