summaryrefslogtreecommitdiff
path: root/lisp/ox-ascii.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/ox-ascii.el')
-rw-r--r--lisp/ox-ascii.el9
1 files changed, 6 insertions, 3 deletions
diff --git a/lisp/ox-ascii.el b/lisp/ox-ascii.el
index 5cc70bd..2dfd5b8 100644
--- a/lisp/ox-ascii.el
+++ b/lisp/ox-ascii.el
@@ -921,14 +921,17 @@ channel."
(format
"[%s] %s"
anchor
- (if (not dest) (org-ascii--translate "Unknown reference" info)
+ (if (stringp dest) ; External file.
+ dest
(format
(org-ascii--translate "See section %s" info)
(if (org-export-numbered-headline-p dest info)
(mapconcat #'number-to-string
- (org-export-get-headline-number dest info) ".")
+ (org-export-get-headline-number dest info)
+ ".")
(org-export-data (org-element-property :title dest) info)))))
- width info) "\n\n")))
+ width info)
+ "\n\n")))
;; Do not add a link that cannot be resolved and doesn't have
;; any description: destination is already visible in the
;; paragraph.