From ad3f9322add2ee7020c0b4036d5c7096a81fc267 Mon Sep 17 00:00:00 2001 From: Bastien Guerry Date: Wed, 28 Mar 2012 01:44:41 +0200 Subject: [PATCH] org-ascii.el: Fix escaping of underscores in links. * org-ascii.el (org-export-as-ascii): Fix escaping of underscores in links. Thanks to Daniel Dehennin who reported this problem. --- lisp/org-ascii.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/org-ascii.el b/lisp/org-ascii.el index c652671b7..4aefea53d 100644 --- a/lisp/org-ascii.el +++ b/lisp/org-ascii.el @@ -438,7 +438,9 @@ publishing directory." link (concat (match-string 1 line) path) type (match-string 2 line) desc0 (match-string 5 line) - desc (or desc0 link)) + desc0 (replace-regexp-in-string "\\\\_" "_" desc0) + desc (or desc0 link) + desc (replace-regexp-in-string "\\\\_" "_" desc)) (if (and (> (length link) 8) (equal (substring link 0 8) "coderef:")) (setq line (replace-match -- 2.11.4.GIT