From fadc83d4fe382436c3234dd2712fafe926cdaeea Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Mon, 21 Jan 2019 18:40:54 +0100 Subject: [PATCH] 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 --- lisp/ox-texinfo.el | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lisp/ox-texinfo.el b/lisp/ox-texinfo.el index ef4a8c19d..13ec237f5 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 --