From b73f7c013d2cfe5d25652164f7a05f5aad29aef1 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Sat, 10 Feb 2018 14:16:37 +0100 Subject: [PATCH] ox-ascii: Use angle brackets for external links * lisp/ox-ascii.el (org-ascii--describe-links): (org-ascii-link): Use angle brackets for external links. Reported-by: Samuel Wales --- lisp/ox-ascii.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lisp/ox-ascii.el b/lisp/ox-ascii.el index 1dbe96f96..7184f3085 100644 --- a/lisp/ox-ascii.el +++ b/lisp/ox-ascii.el @@ -959,7 +959,7 @@ channel." (t (concat (org-ascii--fill-string - (format "[%s] %s" anchor (org-element-property :raw-link link)) + (format "[%s] <%s>" anchor (org-element-property :raw-link link)) width info) "\n\n"))))) links "")) @@ -1602,10 +1602,10 @@ INFO is a plist holding contextual information." (_ "???")))) (t (let ((raw-link (org-element-property :raw-link link))) - (if (not (org-string-nw-p desc)) (format "[%s]" raw-link) + (if (not (org-string-nw-p desc)) (format "<%s>" raw-link) (concat (format "[%s]" desc) (and (not (plist-get info :ascii-links-to-notes)) - (format " (%s)" raw-link))))))))) + (format " (<%s>)" raw-link))))))))) ;;;; Node Properties -- 2.11.4.GIT