Browse Source

Fix bug when exporting links with attributes.

Carsten Dominik 16 years ago
parent
commit
0be85cda60
2 changed files with 1 additions and 4 deletions
  1. 0 4
      ORGWEBPAGE/Changes.org
  2. 1 0
      lisp/org-exp.el

+ 0 - 4
ORGWEBPAGE/Changes.org

@@ -64,10 +64,6 @@
 
     : [[./img/a.jpg{{alt="This is image A" title="Image with no action"}}] ]
 
-**** TODO Fix link export in examples.
-     For some reason these are processed even though they are in
-     an exmple region. 
-
 *** A way to compare times during a property search
     If the comparison value in a property search is a string that
     is enclosed in angular brackets, a time comparison will be

+ 1 - 0
lisp/org-exp.el

@@ -1716,6 +1716,7 @@ When it is nil, all comments will be removed."
 	 (replace-match s t t))))
     (goto-char (point-min))
     (while (re-search-forward org-bracket-link-regexp nil t)
+      (goto-char (1- (match-end 0)))
       (org-if-unprotected
        (let* ((xx (save-match-data
 		    (org-link-expand-abbrev (match-string 1))))