From 9236cff71a2fa93cdd21367ad8d06f117863d795 Mon Sep 17 00:00:00 2001 From: Carsten Dominik Date: Sun, 17 May 2009 23:22:52 +0200 Subject: [PATCH] ASCII export: Fix bug when exporting links --- lisp/ChangeLog | 5 +++++ lisp/org-ascii.el | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 97903bf05..28e4fb1b3 100755 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2009-05-17 Carsten Dominik + + * org-ascii.el (org-export-as-ascii): Fix bug with match string in + a line. + 2009-05-16 Carsten Dominik * org.el (org-edit-src-code, org-edit-fixed-width-region): Use a diff --git a/lisp/org-ascii.el b/lisp/org-ascii.el index ae33502e2..1bc2b7144 100644 --- a/lisp/org-ascii.el +++ b/lisp/org-ascii.el @@ -372,7 +372,7 @@ publishing directory." (if org-export-ascii-links-to-notes (push (cons desc0 link) link-buffer) (setq rpl (concat rpl " (" link ")") - wrap (+ (length line) (- (length (match-string 0))) + wrap (+ (length line) (- (length (match-string 0 line))) (length desc))))) (setq line (replace-match rpl t t line)))) (when custom-times -- 2.11.4.GIT