Browse Source

Handle timestamps after handling links

* org-html.el (org-export-as-html): Handle timestamps after handling
links.

otherwise a link description with an ISO date is handled as an
inactive timestamp and replaced by a timestamp span.

Bug reported by Vincent Belaïche.
David Maus 10 years ago
parent
commit
163cd58ffd
1 changed files with 2 additions and 2 deletions
  1. 2 2
      lisp/org-html.el

+ 2 - 2
lisp/org-html.el

@@ -1308,8 +1308,6 @@ lang=\"%s\" xml:lang=\"%s\">
 				  "@</a> ")
 			  t t line)))))
 
-	  (setq line (org-html-handle-time-stamps line))
-
 	  ;; replace "&" by "&amp;", "<" and ">" by "&lt;" and "&gt;"
 	  ;; handle @<..> HTML tags (replace "@&gt;..&lt;" by "<..>")
 	  ;; Also handle sub_superscripts and checkboxes
@@ -1474,6 +1472,8 @@ lang=\"%s\" xml:lang=\"%s\">
 	    (setq line (replace-match rpl t t line)
 		  start (+ start (length rpl))))
 
+	  (setq line (org-html-handle-time-stamps line))
+
 	  ;; TODO items
 	  (if (and (string-match org-todo-line-regexp line)
 		   (match-beginning 2))