Browse Source

Export: Do not HTML process URLs when they are also used as descriptions.

Carsten Dominik 16 years ago
parent
commit
d31ebe2c98
2 changed files with 9 additions and 1 deletions
  1. 5 0
      lisp/ChangeLog
  2. 4 1
      lisp/org-exp.el

+ 5 - 0
lisp/ChangeLog

@@ -1,3 +1,8 @@
+2009-01-07  Carsten Dominik  <carsten.dominik@gmail.com>
+
+	* org-exp.el (org-export-normalize-links): If the link is also
+	used as the description, protect the description.
+
 2009-01-06  Carsten Dominik  <carsten.dominik@gmail.com>
 
 	* org.el (org-closest-date): Fix bug with yearly repeats, in

+ 4 - 1
lisp/org-exp.el

@@ -2054,7 +2054,10 @@ When it is nil, all comments will be removed."
 		  "[[" xx "]"
 		  (if (match-end 3)
 		      (match-string 2)
-		    (concat "[" xx "]"))
+		    (concat "[" (org-add-props
+				    (copy-sequence xx)
+				    '(org-protected t))
+			    "]"))
 		  "]")))
 	 (put-text-property 0 (length s) 'face 'org-link s)
 	 (replace-match s t t))))))