Browse Source

ox-texinfo: Fix link to headlines

* lisp/ox-texinfo.el (org-texinfo-link): Reverse behaviour whether
  headline is numbered or not.
Nicolas Goaziou 9 years ago
parent
commit
0194425d52
1 changed files with 3 additions and 4 deletions
  1. 3 4
      lisp/ox-texinfo.el

+ 3 - 4
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