forked from mirrors/org-mode
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.
This commit is contained in:
parent
17b865ddd0
commit
ea7b5a327f
|
@ -1065,9 +1065,11 @@ holding contextual information."
|
||||||
;; Even if HEADLINE has no section, there might be some
|
;; Even if HEADLINE has no section, there might be some
|
||||||
;; links in its title that we shouldn't forget to describe.
|
;; links in its title that we shouldn't forget to describe.
|
||||||
(links
|
(links
|
||||||
(unless (eq (caar (org-element-contents headline)) 'section)
|
(unless (or (eq (caar (org-element-contents headline)) 'section))
|
||||||
(org-e-ascii--describe-links
|
(let ((title (org-element-property :title headline)))
|
||||||
(org-e-ascii--unique-links headline info) width info))))
|
(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.
|
;; Deep subtree: export it as a list item.
|
||||||
(if low-level-rank
|
(if low-level-rank
|
||||||
(concat
|
(concat
|
||||||
|
|
Loading…
Reference in New Issue