summaryrefslogtreecommitdiff
path: root/lisp/ox-ascii.el
diff options
context:
space:
mode:
authorS├ębastien Delafond <sdelafond@gmail.com>2016-02-10 18:54:48 +0100
committerS├ębastien Delafond <sdelafond@gmail.com>2016-02-10 18:54:48 +0100
commit8d8ea67656b95d8528b6cd9b43b2d53b847412b0 (patch)
treed5aa3d72b5904dc9bace013bbb7cd530191fe219 /lisp/ox-ascii.el
parentf7ab8b6645e5b81dd3b1df053a3bf41b279696f4 (diff)
Imported Upstream version 8.3.3
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.