Преглед на файлове

ox-texinfo: Fix link to headlines

* lisp/ox-texinfo.el (org-texinfo-link): Reverse behaviour whether
  headline is numbered or not.
Nicolas Goaziou преди 10 години
родител
ревизия
0194425d52
променени са 1 файла, в които са добавени 3 реда и са изтрити 4 реда
  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