Forráskód Böngészése

org-e-ascii: Fix link description in empty section

* contrib/lisp/org-e-ascii.el (org-e-ascii-headline): Fix link
  description in empty section.
Nicolas Goaziou 12 éve
szülő
commit
ea7b5a327f
1 módosított fájl, 5 hozzáadás és 3 törlés
  1. 5 3
      contrib/lisp/org-e-ascii.el

+ 5 - 3
contrib/lisp/org-e-ascii.el

@@ -1065,9 +1065,11 @@ holding contextual information."
 	   ;; Even if HEADLINE has no section, there might be some
 	   ;; links in its title that we shouldn't forget to describe.
 	   (links
-	    (unless (eq (caar (org-element-contents headline)) 'section)
-	      (org-e-ascii--describe-links
-	       (org-e-ascii--unique-links headline info) width info))))
+	    (unless (or (eq (caar (org-element-contents headline)) 'section))
+	      (let ((title (org-element-property :title headline)))
+		(when (consp title)
+		  (org-e-ascii--describe-links
+		   (org-e-ascii--unique-links title info) width info))))))
       ;; Deep subtree: export it as a list item.
       (if low-level-rank
 	  (concat