Browse Source

ASCII export: Fix bug when exporting links

Carsten Dominik 16 years ago
parent
commit
9236cff71a
2 changed files with 6 additions and 1 deletions
  1. 5 0
      lisp/ChangeLog
  2. 1 1
      lisp/org-ascii.el

+ 5 - 0
lisp/ChangeLog

@@ -1,3 +1,8 @@
+2009-05-17  Carsten Dominik  <carsten.dominik@gmail.com>
+
+	* org-ascii.el (org-export-as-ascii): Fix bug with match string in
+	a line.
+
 2009-05-16  Carsten Dominik  <carsten.dominik@gmail.com>
 
 	* org.el (org-edit-src-code, org-edit-fixed-width-region): Use a

+ 1 - 1
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