From 0194425d526c8fb67de33fafaeb6ab3ec0ea35db Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Sat, 30 May 2015 12:20:10 +0200 Subject: [PATCH] ox-texinfo: Fix link to headlines * lisp/ox-texinfo.el (org-texinfo-link): Reverse behaviour whether headline is numbered or not. --- lisp/ox-texinfo.el | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lisp/ox-texinfo.el b/lisp/ox-texinfo.el index 56245d771..f16b6d357 100644 --- a/lisp/ox-texinfo.el +++ b/lisp/ox-texinfo.el @@ -990,12 +990,11 @@ INFO is a plist holding contextual information. See (cond (desc) ((org-export-numbered-headline-p destination info) - (org-export-data - (org-element-property :title destination) info)) - (t (mapconcat #'number-to-string - (org-export-get-headline-number destination info) "."))))) + (org-export-get-headline-number destination info) ".")) + (t (org-export-data + (org-element-property :title destination) info))))) (otherwise (let ((topic (or desc -- 2.11.4.GIT